how to set mutex can be shared between different process.

by waterblood » Tue, 03 Mar 2009 08:27:18 GMT

Sponsored Links
 Hi All,

   Usually we use  pthread_mutexattr_setpshared to share different
mutex with different process. But I have checked the bionic libc
implementation. It only support PTHREAD_PROCESS_PRIVATE setting.
Does it mean android does not support mutex shared between different

pthread.c in android/bionic/libc/bionic

772 int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int
 773 {
 774     if (!attr)
 775         return EINVAL;
 777     return (pshared == PTHREAD_PROCESS_PRIVATE) ? 0 : ENOTSUP;
 778 }

Guoyin Chen

how to set mutex can be shared between different process.

by Freepine » Wed, 04 Mar 2009 13:58:29 GMT

 Perhaps you can try to use a semaphore file instead?


Sponsored Links

how to set mutex can be shared between different process.

by Dave Sparks » Thu, 05 Mar 2009 07:44:17 GMT

 What is the use case for a shared mutex?

We use shared mutex for IPC shared process memory. See AudioTrack/
AudioFlinger for sample code. In the case, the sharing works because
the mutex is in the shared memory and both process have access to it.


Other Threads

1. Graphing nodes and edges

has anyone worked on creating a graph of various vertices and edges
connecting them? i would like to be able to create an app that does
this but having a hard time with being able to create these drawable
vertices and then allow the user to draw them any where on a canvas? i
have a feeling that i am over complicating this. any ideas or guidance
would be helpful thanks


2. Nanya dunk a pe ka Root explorer

Salam all,

ada yang punya a pe ka root explorer gak?


@ZuliadyAzwin <>

"Design is not just what it looks like and feels like. Design is how it
works" - Steve Jobs

"Indonesian Android Community [id-android]"

PING'S mobile
Email:  Ph. (021) 96087100
Yopie Ratjoen
Email:  Ph. 08977726681
Gila original
Email:  Ph. (031) 91555898

Aturan Jual/Kloteran ID-Android

3. upgrade wiigo Firmware 1.6 to Android 2.1 Eclaire

4. install samdroidkitchn gmn ya???

5. SPICA sh

6. Indeterminate ProgressDialog Spinner Stops

7. help... android market dissapear