Problems with boost::this_thread::sleep(boost::posix_time::milliseconds(100)) on 64 bit platform.

Hello! I was trying to recompile code which was working perfectly on CentOS 6 32 bit under same version of CentOS but for 64bit. boost version is 1.49.0. Problem is that this_thread::sleep return immediately on 64 bit machine... Only increasing sleep time to 3000 i was able to see real sleep. I saw that many people have same problem but is there a way to easily resolve it? Serg

Le 15/07/12 17:35, Serg V. Gulko a écrit :
Hello!
I was trying to recompile code which was working perfectly on CentOS 6 32 bit under same version of CentOS but for 64bit. boost version is 1.49.0. Problem is that this_thread::sleep return immediately on 64 bit machine... Only increasing sleep time to 3000 i was able to see real sleep. I saw that many people have same problem but is there a way to easily resolve it?
I know that moving from 32 to 64 bits cause many troubles in any software. Please, could you send a concrete example? I will try to see what is wrong. Could you check it with Boost.1.50 and sleep_for? Could you point to where the many people describerd the problem? Thanks, Vicente

Hello Vicente! Code is very simple: boost::this_thread::sleep(boost::posix_time::milliseconds(delayTime)); I also tried it with 1.50.0 right now and can confirm that problem still there. Serg -- View this message in context: http://boost.2283326.n4.nabble.com/Problems-with-boost-this-thread-sleep-boo... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (3)
-
Serg Gulko
-
Serg V. Gulko
-
Vicente J. Botet Escriba