Commit Graph
25 Commits
Author SHA1 Message Date
Patrick Pelissier d19a5ad9de Fix warnings.
Update interface to avoid silent cast from size_t to unsigned int.
2017-09-24 23:05:46 +02:00
Patrick Pelissier 2e564088b0 Simplify the inclusion of headers. 2017-09-16 10:14:45 +02:00
Patrick Pelissier 1930bdeac1 _DEF macros checks if a global oplist is register if there is no one
given in the macro call. If it founds one, it will be it instead
of M_DEFAULT_OPLIST.
2017-09-16 08:31:22 +02:00
Patrick Pelissier 67b690bac8 Update comment. 2017-09-14 23:05:51 +02:00
Patrick Pelissier 392835463c Fix issues with new queue. 2017-09-02 22:16:47 +02:00
Patrick Pelissier 4e9375046f Update comment 2017-09-02 19:11:29 +02:00
Patrick Pelissier ae74bde7c9 WIP 2017-09-02 18:20:46 +02:00
Patrick Pelissier ec41f87f97 Add prototype for fast non locking queue MPMC 2017-09-02 18:15:00 +02:00
Patrick Pelissier b802d830b9 Add assertion. 2017-08-26 09:09:30 +02:00
Patrick Pelissier a69c67e850 Remove buffer prefix from buffers.
See commit on shared pointer.
2017-07-25 22:52:19 +02:00
Patrick Pelissier 38c15cebe2 Add statistics about how much overwrite has been done by the buffer.
Unlikley the test about overwrite.
2017-07-19 22:46:53 +02:00
Patrick Pelissier b241933556 Properly introduce contract for buffers. 2017-07-19 22:38:01 +02:00
Patrick Pelissier 3d9ba5cee4 Add the function buffer_size to return the number of objects in the buffer
waiting to be processed.
2017-07-15 16:38:59 +02:00
Patrick Pelissier 5c35411f43 Update TODO (priority queue needs their own headers). 2017-06-19 21:33:43 +02:00
Patrick Pelissier 1739de33c2 Remove hard dependency of INIT_MOVE operator for buffer. 2017-04-23 22:52:47 +02:00
Patrick Pelissier bc1e9239cc Clean up usage of policy within buffer. 2017-04-23 22:46:51 +02:00
Patrick Pelissier 997601c54a Rename M_C3(buffer_, name,_t) into buffer_t 2017-04-23 18:59:06 +02:00
Patrick Pelissier 4991386bb7 Add FREE operator.
Use it instead of DEL if necessary.
2017-04-06 01:21:11 +02:00
Patrick Pelissier 40b3b04d55 Fix bug 2017-03-27 16:54:41 +02:00
Patrick Pelissier 00f912a504 Replace M_MEMORY_ALLOC / M_MEMORY_FREE by M_GET_NEW / M_GET_DEL
It allows a dual layer of overloading for the memory.
2017-03-19 22:15:01 +01:00
Patrick Pelissier 0d21ac12bf Port mutex to use static inline instead of MACRO:
* cleaner
* fix bug in existing code detected by the changes.

*** Break API (you need to go to lower case instead of upper case) ***
2017-03-17 22:02:17 +01:00
Patrick Pelissier a185d08734 Add comments 2017-03-06 22:25:35 +01:00
Patrick Pelissier 4d019ca1f2 Update library name in headers. 2017-02-20 21:29:21 +01:00
Patrick Pelissier cb433aa2a8 Rename macros:
* CAT* --> M_C*
2017-02-19 00:36:42 +01:00
Patrick Pelissier 8e9d20ba1a Add initial stuff 2017-02-18 18:51:04 +01:00