Re: [fpc-pascal] Correct use of GetThreadManager to Semaphores

2009-03-25 Thread Léo Willian Kölln
OK! I will take a look at the pthreads unit. Maybe i make a multi-platform(windows/linux) syncronization unit for the project i´m on and i will try publish it. Thank you Jonas! Léo Willian Kölln 2009/3/25 Jonas Maebe : > > On 25 Mar 2009, at 14:18, Léo Willian Kölln wrote: > >> Léo Willian Köll

Re: [fpc-pascal] Correct use of GetThreadManager to Semaphores

2009-03-25 Thread Jonas Maebe
On 25 Mar 2009, at 14:18, Léo Willian Kölln wrote: Léo Willian Kölln On Tue, Mar 24, 2009 at 5:41 PM, Jonas Maebe > wrote: On 24 Mar 2009, at 18:53, Léo Willian Kölln wrote: But then, what is this post about? http://www.mail-archive.com/fpc-pascal@lists.freepascal.org/msg11866.html Bad a

Re: [fpc-pascal] Correct use of GetThreadManager to Semaphores

2009-03-25 Thread Léo Willian Kölln
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 wrote: > > On 24 Mar 2009, at 18:53, Léo Willian Kölln wrote: > >>

Re: [fpc-pascal] Correct use of GetThreadManager to Semaphores

2009-03-24 Thread Jonas Maebe
On 24 Mar 2009, at 18:53, Léo Willian Kölln wrote: On Tue, Mar 24, 2009 at 12:53 PM, Jonas Maebe > 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 manag

Re: [fpc-pascal] Correct use of GetThreadManager to Semaphores

2009-03-24 Thread Léo Willian Kölln
But then, what is this post about? http://www.mail-archive.com/fpc-pascal@lists.freepascal.org/msg11866.html So, who i use semaphores on linux? (i want Unix like, specifically Linux. For windows i´m using it´s own API) Léo Willian Kölln On Tue, Mar 24, 2009 at 12:53 PM, Jonas Maebe wrote: > Léo

Re: [fpc-pascal] Correct use of GetThreadManager to Semaphores

2009-03-24 Thread Jonas Maebe
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.or