[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Perl threads
- Subject: [ale] Perl threads
- From: cfowler at outpostsentinel.com (Christopher Fowler)
- Date: Tue Apr 26 18:15:31 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