Home away from home
Joined: 2007/1/26 21:48 Last Login
: Today 14:15
From New Zealand
Group:
Registered Users
|
I'm using POSIX threads rwlocks in a non Amiga OS project. Since I'm interested in eventually having it running on Amiga OS 4.x too I had a look at pthread.h for Amiga OS 4.x, and it's missing rwlock functionality. Pthreads semaphores are also no-where to be seen. Do we have an implementation of these?
Amiga OS semaphores are similar, with the exception that a thread can upgrade/downgrade a shared lock to an exclusive lock, whereas trying this with a semaphore will cause a deadlock.
Another matter is using pthreads from within an Amiga OS library. IIRC, there may be some issues with this. Is it possible with the threads.library? Or should POSIX threads not be used in this case?
Hans
|