[fpc-pascal] mutexes and semaphores.

Michael Van Canneyt michael at freepascal.org
Mon Jul 17 09:00:01 CEST 2006

On Sun, 16 Jul 2006, Andreas Berger wrote:

> In order to implement threading in DOS I will need to use some type of mutex, 
> but would like to implement it the FPC way.

There is no "FPC way" :-)

> Does FPC implement platform independent mutexes and/or semaphores? Or must 
> each platform use it's own OS specific versions?

Each platform currently uses it's own OS specific version.

For FPC, it should be enough to implement RTLCiticalSection support,
using the thread manager. The Syncobjs unit in the FCL uses that to
implement classes which can be used as a mutex.


More information about the fpc-pascal mailing list