/[hurd]/hurd/libpthread/sysdeps/generic/pt-mutex-trylock.c
ViewVC logotype

Diff of /hurd/libpthread/sysdeps/generic/pt-mutex-trylock.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by neal, Mon May 2 22:00:33 2005 UTC revision 1.3 by neal, Thu May 12 20:55:38 2005 UTC
# Line 65  __pthread_mutex_trylock (struct __pthrea Line 65  __pthread_mutex_trylock (struct __pthrea
65            break;            break;
66    
67          case PTHREAD_MUTEX_ERRORCHECK:          case PTHREAD_MUTEX_ERRORCHECK:
68            if (mutex->owner == self)            /* We could check if MUTEX->OWNER is SELF, however, POSIX
69              err = EDEADLK;               does not permit pthread_mutex_trylock to return EDEADLK
70                 instead of EBUSY, only pthread_mutex_lock.  */
71            break;            break;
72    
73          case PTHREAD_MUTEX_RECURSIVE:          case PTHREAD_MUTEX_RECURSIVE:

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26