Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-06-04
22:54 • Closed ticket [424119ffff]: reentrant time functions patch plus 7 other chan... artifact: 80ab65be9f user: kennykb
2001-05-15
09:04 • Add attachment rentrant_time_functions_patch.txt to ticket [424119fffff... artifact: 832e90529e user: hobbs
09:04 • Ticket [424119ffff] reentrant time functions patch status still Open with 4 ... artifact: d6b37e505c user: hobbs
02:04 • New ticket [424119ffff]. artifact: b44ebf1a66 user: hobbs

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: