Hi,I write a program use mozilla nss .
My process will scan some variable for a expected value.when the variable
equals some value,my process will dosomething.So,I call PR_Sleep(1second)
for some time interval.
When my program run in solaris,some shell-base program run on it,this
program will start work at 00:00:00,it will adjust the date of computer to
the last day,So,the date of computer will keep in one day.
In this condition,My Program will hung at PR_Sleep,but why?
I think, PR_Sleep will calculate the wait time for sleep function, when time
just(to the last day or adjust to early),PR_Sleep whill block util to it's
schedule time?
is it a bug of PR_Sleep? or my function call problem? Can someone help
me?thanks!!!
int a = 0;//a will be change by other process or thread
//.....
while(1){
PR_Sleep(10);
if( a == 1){
//.....
break;
}
}
_______________________________________________
dev-security mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-security