Implement pthread_condattr_getpshared and pthread_condattr_setpshared.

This commit is contained in:
Ulrich Drepper 2000-07-06 21:57:50 +00:00
parent 4fb7a71f12
commit 16f4ce3837

View File

@ -228,3 +228,21 @@ int pthread_condattr_destroy(pthread_condattr_t *attr)
{
return 0;
}
int pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
{
*pshared = PTHREAD_PROCESS_PRIVATE;
return 0;
}
int pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
{
if (pshared != PTHREAD_PROCESS_PRIVATE && pshared != PTHREAD_PROCESS_SHARED)
return EINVAL;
/* For now it is not possible to shared a conditional variable. */
if (pshared != PTHREAD_PROCESS_PRIVATE)
return ENOSYS;
return 0;
}