| Reply | « Previous Thread | Next Thread » |
|
I haven't made a proper test case for this since I found it while panic-hacking a small script on vacation, but anyway...
It seems that time.sleep doesn't work as expected with large sleep values. I observed that with 3600 second sleep, the thread seems to exit silently (I tried this with fast SIS version). OTOH, with 1800 seconds, it works fine. My guess would be that the argument is multiplied by million (to get microseconds), and then converted to 32-bit signed integer. After this, it's passed in form or another to some system-level function which acts differently if the argument is negative. (And it'll be, since 3.6 billion overflows 2G limit.) |
|
Seems like this is a bug in the Symbian STDLIB sleep() function. Filed as bug #231. Thanks for the report.
Last edited by jplauril : 2005-08-23 at 12:24.
|
|
Addition: e32.ao_sleep() suffers from the same problem.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |