mpmc_node.h 432 B

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