Skip to content
Snippets Groups Projects
  1. Jun 05, 2020
  2. Mar 30, 2020
  3. Mar 26, 2020
    • Jonathan Hanks's avatar
      Updates to the work queues and how they are used/passed. · 66ac6b7e
      Jonathan Hanks authored
      This is to help properly track lifetimes of the work queues.
      
      Put in a wrapper around pthread_create to allow specifying an arbitrary job to run in the guise of a std::function.  This keeps the flexibility (scheduler, stack size, ...) of pthreads but gives the us the ability to call more than just a void* (*)(void*).
      
      With these changes the work queues have been moved out of object scope for both the producer and the daqd objects.  A few small static routines that were used to start worker threads in the producer/daqd are removed.
      66ac6b7e
Loading