[Lazarus] semaphores

Antonio Fortuny a.fortuny at sitasoftware.lu
Tue Feb 14 12:34:53 CET 2012



Le 14/02/2012 12:15, Michael Schnell a écrit :
> 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.
>
> System 5 named semaphores (sem_open() and friends) are designed to 
> work system wide and (AFAI remember) don't need any userspace memory 
> resources.
Yeap. But *sem_open() *seems not to be in my current Lazarus 
installation. I could define it mysel AFAI know whivh libtaty to use.
>
> -Michael
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120214/5268ba43/attachment-0003.html>


More information about the Lazarus mailing list