Commit graph

8 commits

Author SHA1 Message Date
flywind
172a5ab7f8
[std/rlocks]add inline pragma (#17773)
so that it can be used as the base of new locks module with destructors.
2021-04-19 07:41:50 +02:00
flywind
5c5f356347
replace defer with try ... finally (#17753) 2021-04-17 11:48:22 +02:00
shirleyquirk
4ef255b69d
fix rlock compilation failure (#15584)
* change SysLockType_Reentrant

fix edge case where using SysLockType_Reentrant doesn't trigger an #include pthread.h

* syslocktype_reentrant now a var
* remove nodecl to remove empty system_syslocks.c
* let is better than var.

in reality SysLockType = enum, maybe that would be a better fix
2020-10-15 12:54:01 +02:00
Ray Imber
9dd297f613 Locks modules should give a compile error when threads are not enabled. (#12231)
* Locks modules should give a compile error when threads are not enabled.

* fix the compile flags to make the tests pass, or ignore files where necessary.

* Fixed when statement to account for doc builds.
2019-09-26 15:45:50 +02:00
Anatoly Galiulin
ebc02f6dc0 Fix `XDeclaredButNotUsed` warning when locks or rlocks module is used 2016-03-31 16:47:55 +06:00
Anatoly Galiulin
b0eeacf71e Added rlocks module to documentation and news.txt 2016-02-18 09:46:34 +06:00
Anatoly Galiulin
c1028b3363 Added fixes from Araq's comments 2016-02-17 20:44:48 +06:00
Anatoly Galiulin
0290bc2240 Added reentrant locks module to stdlib 2016-02-17 17:05:20 +06:00