Is TinyTree thread safe?
Replies (1)
Please register to reply
Added by Anonymous over 14 years ago
Legacy ID: #8598463 Legacy Poster: Brian Dueck (bdueck)
Hi; I'd like to be able to concurrently use TinyTree instances across threads. These threads treat the TinyTree instances as immutable (i.e. are only traversing the tree never directly modifying it). Is this a safe and supported use of TinyTree? Thanks in advance, Brian.
Legacy ID: #8598490 Legacy Poster: Michael Kay (mhkay)
The tree must be written in a single thread (or at any rate, in a set of threads that synchronize with each other), but thereafter the tree is read-only and it's safe to read it in multiple threads concurrently. Note that these threads must, of course, all use the same NamePool.
Please register to reply