diff options
| author | rpj <rpj> | 2002-01-13 02:29:40 +0000 | 
|---|---|---|
| committer | rpj <rpj> | 2002-01-13 02:29:40 +0000 | 
| commit | 30a1e9738593302fa26e0a668f517bc7f5800190 (patch) | |
| tree | b7379d358ab465e2c2c57864699c91b9055fc9fd /attr.c | |
| parent | 0fee04f5eb2d9c1c484281afbc2b24278567a179 (diff) | |
	* attr.c (pthread_attr_setscope): Fix struct pointer
	indirection error introduced 2002-01-04.
	(pthread_attr_getscope): Likewise.
        * pthread.dsp (SOURCE): Add missing source files.
./tests/:
        * exception3.c (main): Shorten wait time.
        * mutex7.c: New test.
        * mutex7n.c: New test.
        * mutex7e.c: New test.
        * mutex7r.c: New test.
        * mutex6.c: Modified to avoid leaving the locked mutex
        around on exit.
Diffstat (limited to 'attr.c')
| -rw-r--r-- | attr.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -518,7 +518,7 @@ pthread_attr_setscope(pthread_attr_t *attr, int contentionscope)  #ifdef _POSIX_THREAD_PRIORITY_SCHEDULING    switch (contentionscope) {    case PTHREAD_SCOPE_SYSTEM: -    attr->contentionscope = contentionscope; +    (*attr)->contentionscope = contentionscope;      return 0;    case PTHREAD_SCOPE_PROCESS:      return ENOTSUP; @@ -535,7 +535,7 @@ int  pthread_attr_getscope(const pthread_attr_t *attr, int *contentionscope)  {  #ifdef _POSIX_THREAD_PRIORITY_SCHEDULING -  *contentionscope = attr->contentionscope; +  *contentionscope = (*attr)->contentionscope;    return 0;  #else    return ENOSYS; | 
