Overview
| Artifact ID: | 1a64bd20ba29be4aa9fa2b79f53bd352c1fe511f |
|---|---|
| Ticket: | 920731ffffffffffffffffffffffffffffffffff
TIP #178: [info pid] and [info tid] |
| User & Date: | jenglish on 2008-04-21 12:24:04 |
Changes
- icomment:
Logged In: YES user_id=68433 Originator: NO The InfoTidCmd() implementation is busted for POSIX systems: sprintf(buf, "%lu", (unsigned long) Tcl_GetCurrentThread()); On Unix, Tcl_GetCurrentThread() is the same as pthread_self(), which returns a pthread_t. This is an opaque data type; not necessarily an unsigned long, or even convertible to an unsigned long. On some implementations a pthread_t is a pointer to an opaque structure, and is only valid in the context of the process containing the thread. - login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"