On 2013-02-04 12:22, Sven Barth wrote: > I have an idea. But for this I'd need some confirmation: Can you please > put in your example program the FSemaphore into a record and add also a > ...
OK, attached is the new test project. Below is the output. Now the FMaxPoolSize variable still has the correct value before and after sem_init(), and I could successfully unlock the semaphores. But as you can see, the array values have changed. --------[ freebsd output ]-------------- $ ./project1 FMaxPoolSize before = 2 FValues[0] = $123456 FValues[1] = $654321 FMaxPoolSize after = 2 FValues[0] = $000002 FValues[1] = $000000 c = 2 Now create a lock c = 1 Now create a lock c = 0 i = 0 unlock a semaphore i = 1 unlock a semaphore i = 2 ---------------------------------------- Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/
semp_test2.tar.gz
Description: GNU Zip compressed data
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel