Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fred Wright
CMake
Commits
c8dab963
Commit
c8dab963
authored
Jul 28, 2006
by
Bill Hoffman
Browse files
ENH: move from main tree
parent
015ff69c
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/kwsys/SystemTools.cxx
View file @
c8dab963
...
...
@@ -3547,15 +3547,6 @@ void SystemTools::Delay(unsigned int msec)
#ifdef _WIN32
Sleep
(
msec
);
#else
// Block signals to make sure the entire sleep duration occurs. If
// a signal were to arrive the sleep or usleep might return early
// and there is no way to accurately know how much time was really
// slept without setting up timers.
sigset_t
newset
;
sigset_t
oldset
;
sigfillset
(
&
newset
);
sigprocmask
(
SIG_BLOCK
,
&
newset
,
&
oldset
);
// The sleep function gives 1 second resolution and the usleep
// function gives 1e-6 second resolution but on some platforms has a
// maximum sleep time of 1 second. This could be re-implemented to
...
...
@@ -3572,9 +3563,6 @@ void SystemTools::Delay(unsigned int msec)
{
usleep
(
msec
*
1000
);
}
// Restore the signal mask to the previous setting.
sigprocmask
(
SIG_SETMASK
,
&
oldset
,
0
);
#endif
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment