Skip to content
Tcl Source Code View Ticket
Login

View Ticket

reentrant time functions patch

Closed / Fixed424119ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2001-05-15 02:04:46
This is a patch from Simon Hefti @ NetCetera for use 
of reentrant time functions.  Kevin did some work in 
this area, but wanted to see this patch (which touched 
some different bits).
hobbsplain2001-05-15 09:04:47
File Added - 6301: rentrant_time_functions_patch.txt
kennykbplain2001-06-04 22:54:36
Logged In: YES 
user_id=99768

The patches fix a re-entrancy problem in a different way.
The code on the current HEAD fixes TclpGetDate by making sure that the 'struct time_t' that it returns by 
pointer is in thread-specific data, while the submitted patch works by forcing the caller to provide a buffer.
The way that the current HEAD does it has the advantage that it preserves the type signature of all the 
calls, hence any extension that includes "tclInt.h" and calls TclpGetDate will continue to work.  It does 
require one more thread-specific buffer, but this seems a small price to pay.
Log in (anonymous is fine) to add a comment.

Attachments: