[fpc-pascal] mutexes and semaphores.

2006-07-16 Thread Andreas Berger
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.


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


Regards,
Andreas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] mutexes and semaphores.

2006-07-16 Thread ϸ�� ����������� � mail.ru
AB> In order to implement threading in DOS I will need to use some type of
AB> mutex, but would like to implement it the FPC way.

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

Michael Van Canneyt can answer this question, there are some parts in
FCL approaching OS independence.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] mutexes and semaphores.

2006-07-16 Thread Michael Van Canneyt



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.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal