-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
Nokia QtSDK with QtLibs 4.7.0 on
Linux member-laptop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
-
76a0c085c8fc6e5f2a46b186a4a1c83e3713bd76
the attached simple code produces output:
1
as expected
But when run under gdb debugger in QtCreator, the output becomes
1
2
which means that acquire() doesnt block as documented.
The workaround I found through trial-and-error is:
in main() call semaphore.start() AFTER all other threads have been started.