[fpc-pascal] Correct use of GetThreadManager to Semaphores

Léo Willian Kölln leokolln at gmail.com
Wed Mar 25 14:18:45 CET 2009


So... What i do now?
There is no way to use semaphores on Linux?
Not even using a syscall or something?
The bad advice is this one or the one from the link i passed?

Léo Willian Kölln

On Tue, Mar 24, 2009 at 5:41 PM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> On 24 Mar 2009, at 18:53, Léo Willian Kölln wrote:
>
>> On Tue, Mar 24, 2009 at 12:53 PM, Jonas Maebe <jonas.maebe at elis.ugent.be>
>> wrote:
>>>
>>> Léo Willian Kölln wrote on di, 24 mrt 2009:
>>>
>>>> In what moment i need call the function GetThreadManager to get it and
>>>> use semaphore* functions?
>>>
>>> You should never do that. The thread manager is internal. For example,
>>> the
>>> semaphore* functions are nil in the Windows, see
>>> http://bugs.freepascal.org/view.php?id=11206
>>
>
>> But then, what is this post about?
>> http://www.mail-archive.com/fpc-pascal@lists.freepascal.org/msg11866.html
>
>
> Bad advice. Mea culpa.
>
>
> Jonas_______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list