Skip to content
  • There are no suggestions because the search field is empty.

TOP Server Thread Safety

Are OPC interfaces on TOP Server thread safe?

TOP Server is a multi-threaded application. The threads created by TOP Server are thread-safe, so client applications do not need to protect access to the interfaces exposed by the server.

A client application that queries for an interface from 1 thread and stores the pointer at global scope will only be able to allow other threads within the process to access this interface if:

  1. all threads belong to an MTA (multi-threaded apartment), or
  2. the client marshals the interface between threads implemented as STAs (single-threaded apartments).