riastradh
c33b09698b
Use membar_datadep_consumer where code inspection reveals it necessary.
2015-01-08 23:39:57 +00:00
rmind
190a99cba8
Add PCQ_MAXLEN constant.
2014-06-09 12:44:06 +00:00
riastradh
6c0ad81464
__HAVE_ATOMIC_AS_MEMBAR is spelled with two leading underscores.
...
This underscores the need to replace this error-prone cpp API by
unconditionally defined {pre,post}atomic_membar_*.
This change should only remove unnecessary membar_producers on x86.
2014-02-06 03:47:16 +00:00
alnsn
976959cf87
Revert to more readable but non-standard use of offsetof to calculate
...
a size of a structure with a flexible array member.
2012-01-31 20:40:09 +00:00
alnsn
04804f532f
Replace offsetof(pcq_t, pcq_items[nitems]) with sizeof(pcq_t) + sizeof(void *[nitems]).
2012-01-31 19:11:37 +00:00
rmind
f1f4283156
Replace pcq(9) with the implementation from ad@ and minor changes by me.
...
PR/40516, PR/45631.
2012-01-22 02:55:47 +00:00
rmind
9204531a37
- Optimise by avoiding few memory barriers, when atomic operations
...
performs that for us. OK by <matt>.
- Add RCS ID, and a bit of KNF.
2008-11-11 21:45:33 +00:00
snj
351a2e6266
Fix a couple spelling mistakes in comments.
2008-11-11 20:37:15 +00:00
matt
c8d306e353
Add generic producer/consumer queue code.
2008-11-11 20:17:27 +00:00