Project

Profile

Help

Is TinyTree thread safe?

Added by Anonymous about 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.


Replies (1)

RE: Is TinyTree thread safe? - Added by Anonymous about 14 years ago

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.

    (1-1/1)

    Please register to reply