On 14/02/12 11:15, Michael Schnell wrote:
On 02/14/2012 11:40 AM, Henry Vermaak wrote:
Look into the pthread man pages for info. I
Usual pthread_mutex() functions are designed for working within a single
process and thus will use Futex, if available and thus will not work
system-wide. I don't know if pthreadlib offers an option for system wide
Mutexes.
No, you're wrong. Read the section named "Process Shared Memory and
Synchronization" for an example of implementing an inter-process
semaphore with a pthread mutex and mmap:
http://linux.die.net/man/3/pthread_mutexattr_init
Henry
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus