in reply to Re: is ||= threadsafe?
in thread is ||= threadsafe?
The case you are talking about would imply a bug in perl in it not being thread safe, since variable reference counts are not user-land features, but things handled automatically by perl -- so they are inherently thread-safe as much as perl is defined to be thread-safe.
That said, I'm sure you'd have to protect such increments from multi-threaded access, inside perl, but that's not something we need to worry about in userland.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: is ||= threadsafe?
by ikegami (Patriarch) on Oct 25, 2010 at 16:47 UTC | |
by BrowserUk (Patriarch) on Oct 25, 2010 at 17:29 UTC | |
by ikegami (Patriarch) on Oct 25, 2010 at 17:46 UTC | |
by tye (Sage) on Oct 25, 2010 at 19:43 UTC | |
by ikegami (Patriarch) on Oct 25, 2010 at 22:02 UTC | |
by BrowserUk (Patriarch) on Oct 25, 2010 at 18:45 UTC | |
by ikegami (Patriarch) on Oct 25, 2010 at 21:59 UTC | |
|