STABLE14-solaris-mypid-track-threads-20070104

based on suggestion by tkeiser


(cherry picked from commit 267b548a48)
This commit is contained in:
Derrick Brashear 2007-01-05 04:50:45 +00:00
parent 7efacf2848
commit 3b8b35b2f2

View File

@ -86,7 +86,10 @@ typedef struct afs_bozoLock afs_bozoLock_t;
#define BEGINMAC do {
#define ENDMAC } while (0)
#if defined(AFS_SUN5_ENV) || defined(AFS_OBSD_ENV)
#if defined(AFS_SUN57_ENV)
#define MyPidxx (curthread->t_tid)
#else
#if defined(AFS_OBSD_ENV) || defined(AFS_SUN5_ENV)
#define MyPidxx (curproc->p_pid)
#else
#if defined(AFS_AIX41_ENV)
@ -124,6 +127,7 @@ extern tid_t thread_self();
#endif /* AFS_HPUX101_ENV */
#endif /* AFS_AIX41_ENV */
#endif
#endif
/* all locks wait on excl_locked except for READ_LOCK, which waits on readers_reading */
struct afs_lock {