[fpc-devel] simpleipc issues

Michael Van Canneyt michael at freepascal.org
Tue Sep 15 18:16:02 CEST 2015

On Tue, 15 Sep 2015, Tomas Hajny wrote:

> On Tue, September 15, 2015 10:04, Michael Van Canneyt wrote:
>> On Tue, 15 Sep 2015, Ondrej Pokorny wrote:
> .
> .
>>> Are there some high level crossplatform semaphore functions in the FCL?
>>> The
>>> cthreads/cIntSemaphoreOpen etc. seem to be available on unix only. What
>>> about
>>> OS/2?
>> Careful, these are thread semaphores, I think.
>> I am talking about cross-process semaphores. They are in the baseunix/unix
>> units.
>> I suppose OS/2 has semaphores, but Tomas will need to confirm.
> OS/2 certainly has semaphores (three types of them, in fact ;-) - event
> semaphores, mutex semaphores and muxwait semaphores).

Excellent !

>> But if OS/2 currently does not support simpleIPC, then the point is moot
>> anyway.
> See packages/fcl-process/src/os2/simpleipc.inc. Moreover, the code posted
> by Ondrej does not contain anything that should not compile on OS/2 at the
> first sight, that's why I wanted to have a test allowing to check whether
> it really works. The fact that sending messages across processes would be
> usually implemented differently if using OS/2 API features directly may
> not be so important.

Well, the implementation looks as if it will work on all platforms.


More information about the fpc-devel mailing list