in reply to Thread::RWLock for 5.8 threads ?
Will Thread::RWLock work unaltered w/ ithreads ?
No. But it might work if you changed the line:
use Thread qw(cond_wait cond_broadcast);
To
use threads; use threads::shared;
Both cond_wait() and cond_broadcast() are exported from threads::shared, and are specified to work the same way as their predecessors. If the module worked correctly under Thread, there is a good chance that it would work under thread/threads::shared.
It would of course be up to you to verify that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Thread::RWLock for 5.8 threads ?
by renodino (Curate) on Oct 24, 2005 at 16:56 UTC | |
by BrowserUk (Patriarch) on Oct 24, 2005 at 17:19 UTC | |
by renodino (Curate) on Oct 24, 2005 at 17:38 UTC | |
by BrowserUk (Patriarch) on Oct 24, 2005 at 17:51 UTC | |
by renodino (Curate) on Oct 24, 2005 at 18:13 UTC |