The entire Decoder is intentionally NOT thread safe. There must be only
one thread in any instance of the Decoder (or Encoder) at any time.
Using the communication support that is part of QuickFAST this is enforced.
Ideally FieldIdentity should be allocated at startup and only released
during final shutdown.
The intrusive pointer is a relic from an earlier version of QuickFAST
which did not use this approach.
Dale
>
> --
> WBR,
> Max
>
--
Dale Wilson
Principal Software Engineer
Object Computing, Inc.
2012/1/26 Dale Wilson <wil...@ociweb.com>:
> The entire Decoder is intentionally NOT thread safe. There must be only one
> thread in any instance of the Decoder (or Encoder) at any time.
> Using the communication support that is part of QuickFAST this is enforced.
In my case I have only one thread per decoder. But a TemplateRegistry
instance was shared among several decoders.
Please remove (or edit appropriately) this comment from
XMLTemplateParser description:
///
/// Multithreading Note:
/// This class was designed under the assumption that it would
be run once during
/// initialization. There are no guarantees that template
parsing is thread-safe.
/// The resulting template repository, however, can be safely
shared between
/// threads.
--
Max