lockfree

lockfree.git
git clone git://git.lenczewski.org/lockfree.git
Log | Files | Refs | README | LICENSE

queue.h (283B)


      1 #ifndef QUEUE_H
      2 #define QUEUE_H
      3 
      4 #include <stdatomic.h>
      5 #include <stddef.h>
      6 #include <stdint.h>
      7 
      8 #include "benchmark.h"
      9 
     10 struct lf_queue {
     11 	int foo;
     12 };
     13 
     14 static inline struct benchmark
     15 lf_queue_benchmark(void)
     16 {
     17 	return (struct benchmark) {"Lock-free Queue"};
     18 }
     19 
     20 #endif /* QUEUE_H */