Closed Bug 953413 Opened 12 years ago Closed 11 years ago

PR_GetThreadID() is defined to return a PRUint32, which is not good enough for a pthread_t

Categories

(NSPR :: NSPR, defect)

x86_64
NetBSD
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 301986

People

(Reporter: martin, Assigned: wtc)

Details

Attachments

(1 file)

Attached patch pthread.patchSplinter Review
On architectures where pthread_t is wider than 32bit (e.g. on 64 bit NetBSD versions), the return value of PR_GetThreadID() is not good enough. In the pthread based implementation, it could easily be made pthread_t, however, there is no equivalent generic PR* type for that. Maybe it should be uintptr_t? pkgsrc just patches the function and the declaration to use pthread_t, but that might not be good enough for NSPR in general.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: