MantisBT - Open CASCADE
View Issue Details
0031768Open CASCADE[OCCT] OCCT:Foundation Classespublic2020-09-15 12:562020-09-15 19:28
kgv 
bugmaster 
normalintegration request 
reviewedopen 
 
[OCCT] 7.5.0 
0031768: Foundation Classes - use usleep within OSD::MilliSecSleep()
OSD::MilliSecSleep() relies on select() as portable implementation of thread sleep functionality:
> Emulating usleep(3)
> Before the advent of usleep(3), some code employed a call to select()
> with all three sets empty, nfds zero, and a non-NULL timeout as a
> fairly portable way to sleep with subsecond precision.

Nowadays, using select() for this reason looks unreasonable.
N/A
No tags attached.
Issue History
2020-09-15 12:56kgvNew Issue
2020-09-15 12:56kgvAssigned To => abv
2020-09-15 13:02gitNote Added: 0094826
2020-09-15 19:28kgvNote Added: 0094887
2020-09-15 19:28kgvAssigned Toabv => bugmaster
2020-09-15 19:28kgvStatusnew => resolved
2020-09-15 19:28kgvStatusresolved => reviewed

Notes
(0094826)
git   
2020-09-15 13:02   
Branch CR31768 has been created by kgv.

SHA-1: 7d13e48e7e1c62873fc95794b6c7a98cbdb10da0


Detailed log of new commits:

Author: kgv
Date: Tue Sep 15 13:05:06 2020 +0300

    0031768: Foundation Classes - use usleep within OSD::MilliSecSleep()
(0094887)
kgv   
2020-09-15 19:28   
Please raise the patch
- OCCT branch: CR31768.

http://jenkins-test-12.nnov.opencascade.com/view/CR31768-master-KGV [^]