They are not available at the moment. You should be able to implement them through the use of several mutexes and condition variables though. There are several implementations available on the web (search for "implement read write lock" for example).
Feel free to submit a patch to the platform once you have something that works. Regards On Thu, Jul 30, 2009 at 1:50 PM, Rakesh Kumar <rakesh.y...@gmail.com> wrote: > Hi, > Is there any alternative of pthread_rwlock_*** in android. Does > android have any api which does the same work? > > > > Regards > Rakesh > > On Tue, Jul 28, 2009 at 1:54 PM, GeunSik Lim (invain) > <leem...@gmail.com>wrote: > >> >> >> Hi Rakesh, >> >> Android platform support posix thread api limitally. >> ( >> http://blogfiles12.naver.net/20090728_91/invain_1248769404396_kpQWX0_PNG/android-pthread-api-list.PNG >> ) >> >> In summary, >> Android's posix compatible api don't support below list that POSIX >> 1003.1j-2000 specified. >> 1. pthread_rwlock_*** >> 2. pthread_rwlockattr_*** >> 3. pthread_barrior_*** >> 4. pthread_barrior_attr_*** >> 5. pthread_spin_*** >> >> Hope it helps. >> >> Thks, >> GeunSik Lim. >> >> On 7월28일, 오후3시08분, Rakesh Kumar <rakesh.y...@gmail.com> wrote: >> > Hi, >> > I want t use pthread raead/write lock functions like >> > "pthread_rwlock_rdlock" , "pthread_rwlock_destroy" etc in my code. But >> > android pthread lib does not support them, in my view. Please tell me is >> > there any alternative to this or not? >> > >> > Thanks >> > Rakesh >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---