Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TIP #178: [info pid] and [info tid]

Closed920731ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 17 years ago
Descriptionplain2004-03-22 02:04:18
Please refer to TIP #178.
mistachkinplain2004-07-09 08:44:33
File Added - 93308: tip178.zip

Logged In: YES 
user_id=113501


Apparently, SF likes to randomly lose attachments?

Here is the reference implementation.
mistachkin Ticket [920731ffff]: 1 change [History diff]2004-07-09 08:45:00
patthoytsplain2008-04-21 05:15:47
File Added - 275281: tip178-20080420.patch

Logged In: YES 
user_id=202636
Originator: NO

I updated the patch for the 8.6 HEAD now that the info command is an ensemble it hooks in differently.
File Added: tip178-20080420.patch
jenglishplain2008-04-21 12:24:04
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.
dkfplain2008-12-11 22:23:42
data_type - 210894
dkfplain2009-07-29 19:58:41
IP - Comment Removed: 130.88.1.31
dkfplain2009-07-29 19:58:47
IP - Comment Removed: 130.88.1.31
dkfplain2009-07-29 19:58:50
IP - Comment Removed: 130.88.1.31
dkfplain2009-07-29 19:58:55
IP - Comment Removed: 130.88.1.31
dkfplain2009-07-29 19:58:57
IP - Comment Removed: 130.88.1.31
dkfplain2009-07-29 19:59:00
IP - Comment Removed: 130.88.1.31
Log in (anonymous is fine) to add a comment.

Attachments: