adobe-flash / crossbridge

Welcome to visit the homepage!
http://www.crossbridge.io
542 stars 196 forks source link

nanosleep blocks thread forever #40

Closed trungnq97 closed 10 years ago

trungnq97 commented 10 years ago

Hi there,

I tried to use nanosleep to sleep for 1 milliseconds. But it blocks my thread forever. sleep works but it cannot be used to sleep less than a second.

const struct timespec ts = { 0, 1000000 }; nanosleep (&ts, NULL);

Any idea is appreciated.

Cheers, Trung

trungnq97 commented 10 years ago

Problem solved by using avm2_self_msleep.