Perhaps you can try to use a semaphore file instead?
On Tue, Mar 3, 2009 at 4:27 PM, waterblood <[email protected]> wrote:
>
> 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
> processes?
>
> pthread.c in android/bionic/libc/bionic
>
> 772 int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int
> pshared)
> 773 {
> 774 if (!attr)
> 775 return EINVAL;
> 776
> 777 return (pshared == PTHREAD_PROCESS_PRIVATE) ? 0 : ENOTSUP;
> 778 }
>
>
> Thanks
> Guoyin Chen
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---