in reply to shared complex scalars between threads

One mechanism would be to create the object in a single thread, and then provide an API to it. Create a shared-data area to pass request/response data. Use semaphores to protect the shared-data, and to have the Bayes-thread wait on.
  1. acquire shared-data semaphore
  2. fill in shared-data request
  3. hit Bayes-thread semaphore
  4. Bayes-thread reads request, posts response
  5. requester reads response and frees shared-data semaphore
  • Comment on Re: shared complex scalars between threads