зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla bug #50386: fixed PR_Sleep so that it won't return uninitialized
variable. Thanks to Fred Batty <fredb@iplanet.com> for reporting the bug.
This commit is contained in:
Родитель
d75dfb524a
Коммит
c3a38486a6
|
@ -749,14 +749,13 @@ PR_IMPLEMENT(PRStatus) PR_Yield()
|
|||
|
||||
PR_IMPLEMENT(PRStatus) PR_Sleep(PRIntervalTime ticks)
|
||||
{
|
||||
PRStatus rv;
|
||||
PRStatus rv = PR_SUCCESS;
|
||||
|
||||
if (!_pr_initialized) _PR_ImplicitInitialization();
|
||||
|
||||
if (PR_INTERVAL_NO_WAIT == ticks)
|
||||
{
|
||||
_PT_PTHREAD_YIELD();
|
||||
rv = PR_SUCCESS;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче