[ale] Perl threads

Christopher Fowler cfowler at outpostsentinel.com
Tue Apr 26 18:15:31 EDT 2005


I'm writing a program to use threads in Perl.  I have replaced print
with _print that will place a time stamp before each entry in the log
file.  I want to make sure that two _print executions do not step on
each others toes.  Is there a way to create a variable and lock it like
I would in Posix threads?  I could then lock on entry of _print and then
unlock on exit.

Chris




More information about the Ale mailing list