mpsc_node.h 423 B

1234567891011121314151617
  1. #pragma once
  2. #include "Atomic.h"
  3. namespace baselib
  4. {
  5. BASELIB_CPP_INTERFACE
  6. {
  7. // mpsc_node container node class. All nodes used by mpsc_node containers must derive from this class.
  8. // No initialization or other restrictions apply. Inherited class is not accessed by the mpsc_node containers.
  9. class mpsc_node
  10. {
  11. public:
  12. atomic<mpsc_node*> next;
  13. };
  14. }
  15. }