in reply to Re^2: ithreads, locks, shared data: is that OK?
in thread ithreads, locks, shared data: is that OK?
You don't need to lock the queue for enqueue and dequeue. You need it for peek, but why do you need peek? Enqueue and dequeue should be all you need :-)
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: ithreads, locks, shared data: is that OK?
by bliako (Monsignor) on Sep 20, 2018 at 10:08 UTC | |
by choroba (Cardinal) on Sep 20, 2018 at 12:29 UTC | |
by bliako (Monsignor) on Sep 20, 2018 at 15:57 UTC | |
by choroba (Cardinal) on Sep 20, 2018 at 16:06 UTC | |
by bliako (Monsignor) on Sep 20, 2018 at 16:52 UTC |
In Section
Seekers of Perl Wisdom