Patrick Pelissier
76bfb48685
Update freebsd CI to be more robust.
2023-03-02 23:41:59 +01:00
Patrick Pelissier
afff412f7a
Maintenance: continue splitting huge macros into smaller ones.
2023-03-02 00:39:08 +01:00
Patrick Pelissier
e48dcdeecc
Factorization & assertions
2023-02-27 14:05:59 +01:00
Patrick Pelissier
12fae5c36c
Update example
2023-02-26 23:43:57 +01:00
Patrick Pelissier
3f9129c7ed
Update comments
2023-02-26 23:43:57 +01:00
Patrick Pelissier
b918f61f4f
Update example
2023-02-26 23:43:57 +01:00
Patrick Pelissier
93b69d0f8b
Fix call of memcpy with size=0 and src=NULL
2023-02-25 12:17:18 +01:00
Patrick Pelissier
b3440a2edd
Fix position of assertions
2023-02-24 20:35:32 +01:00
Patrick Pelissier
4140df5bfc
Improve test suite
2023-02-24 19:56:56 +01:00
Patrick Pelissier
fbab093d52
Avoid warnings about variables never read.
2023-02-24 19:56:26 +01:00
Patrick Pelissier
f57a0e0bf8
Update README
2023-02-24 18:21:39 +01:00
Patrick Pelissier
925c06beb8
Fix usage of va_copy
2023-02-24 15:07:29 +01:00
Patrick Pelissier
8e2f67b794
Fix building on exe files: some targets don't link with LDFLAGS if it is not in the last argument
2023-02-23 12:42:11 +01:00
Patrick Pelissier
f176d01e49
Fix README
2023-02-23 10:53:32 +01:00
Patrick Pelissier
2b99bbe956
Remove bool oplist as it is globally registered
2023-02-22 22:47:31 +01:00
Patrick Pelissier
700bfc5341
Add documentation for RET in API transformation
2023-02-22 22:47:17 +01:00
Patrick Pelissier
4062525821
Add test for RET in API transformation
2023-02-22 22:47:06 +01:00
Patrick Pelissier
800a1e5c36
Add support for RET in API transformation and register global bool oplist
2023-02-22 22:46:46 +01:00
Patrick Pelissier
1838f675a7
Add more comments, another alternative.
...
Rename some variables to be clearer.
2023-02-18 20:15:17 +01:00
Patrick Pelissier
bf6c1341b3
Add comments to explain what we do
...
Always use the prefixed version of M*LIB
2023-02-18 09:58:30 +01:00
Patrick Pelissier
55b745b916
Use of M_WORKER_SPAWN_DEF2 in example:
...
it shows how to add paralelization to a code base.
2023-02-18 00:25:30 +01:00
Patrick Pelissier
5cb0d9214b
Adding doc for M_WORKER_SPAWN_DEF2.
2023-02-18 00:25:17 +01:00
Patrick Pelissier
8f99b8e617
Adding test for M_WORKER_SPAWN_DEF2
2023-02-18 00:25:06 +01:00
Patrick Pelissier
d2ce71a90a
Adding M_WORKER_SPAWN_DEF2 for providing specialization
...
and type-safe variant of m_worker_spawn.
2023-02-18 00:24:20 +01:00
Patrick Pelissier
8562986eea
Avoid dereferencing the table in asserts if the lock is done on the tree:
...
it usually means that the tree is partially accessed by other
threads (at least the derefencing methods which should be
safe).
2023-02-18 00:15:31 +01:00
Patrick Pelissier
ee89858bf0
Add renaming of header in compatibility chapter
2023-02-16 00:20:07 +01:00
Patrick Pelissier
085d7157c0
Add compatibility layer with old header m-mutex
...
as a transition for current programs.
2023-02-16 00:10:55 +01:00
Patrick Pelissier
91f3174a36
Rename m-mutex header into m-thread
...
as it is not just about mutex but about thread functions
just like the header pthread or thread.h
2023-02-16 00:09:06 +01:00
Patrick Pelissier
56f51c59af
Add comments about locale dependent functions.
2023-02-11 23:47:11 +01:00
Patrick Pelissier
df0c95ca46
Adding note on locale for JSON outputs
2023-02-11 14:35:36 +01:00
Patrick Pelissier
482ec38e62
Fix wrong use of isprint function.
2023-02-11 14:34:13 +01:00
Patrick Pelissier
82743ca72c
Update pipeline for freebsd
2023-02-11 09:28:12 +01:00
Patrick Pelissier
312821454c
Avoid running tests in example for freebsd
2023-02-11 00:39:06 +01:00
Patrick Pelissier
c953e87660
Link with stdthreads for FreeBSD
2023-02-11 00:11:48 +01:00
Patrick Pelissier
8846707c8b
Fix issue on FreeBSD when building in C11 mode:
...
thrd_sucess is not equal to 0 on this system,
so replace 0 by thrd_success
2023-02-11 00:08:51 +01:00
Patrick Pelissier
bf7d4eee55
Avoid using .log suffix for failure checks
...
some Make program (like FreeBSD one) doesn't handle
priority of a specific rule over a generic rule.
So the generic rule is used for failure checks and it fails the check.
Use another suffix to avoid collision between rules
2023-02-10 23:57:28 +01:00
Patrick Pelissier
d4dc85f89a
Add FreeBSD target for CI
2023-02-10 21:36:04 +01:00
Patrick Pelissier
130c32e7d4
Include only sysinfoapi.h on Windows machine to reduce dependency
...
Add fallback to _SC_NPROCESSORS_CONF if _SC_NPROCESSORS_ONLN is not supported (Android)
2023-02-07 23:17:03 +01:00
Patrick Pelissier
2bcaba3bc0
Factorize into smaller macros
2023-02-06 22:17:12 +01:00
Patrick Pelissier
443c805c22
Fix format
2023-02-06 21:28:19 +01:00
Patrick Pelissier
414c87bb69
Rename internal macros
2023-02-05 23:38:29 +01:00
Patrick Pelissier
e9ca506d93
Factorization of macros
2023-02-03 20:53:27 +01:00
Patrick Pelissier
8e58f7d637
Factorize into smaller generation macros. Add emplace support for MPMC/SPSC queues
2023-02-01 20:58:28 +01:00
Patrick Pelissier
254beaf3c7
Factorize into smaller generation macros
2023-02-01 20:43:01 +01:00
Patrick Pelissier
27735eb224
Migrate version of action scripts.
2023-01-29 00:19:22 +01:00
Patrick Pelissier
0afc81bd54
Simplify example by using emplace function.
2023-01-28 14:49:17 +01:00
Patrick Pelissier
39e67eebdc
EMPLACE: Fix expansion of methods as macro in the oplist
...
by performing another evaluation step.
2023-01-28 14:49:07 +01:00
Patrick Pelissier
840226c7fd
TREE: Add documentation of emplace functions
2023-01-28 14:48:58 +01:00
Patrick Pelissier
e421851525
TREE: Add tests for emplace functions
2023-01-28 14:48:50 +01:00
Patrick Pelissier
f70b52c9e4
TREE: Add support for emplace functions
2023-01-28 14:48:12 +01:00