add thread safe wrappers

This commit is contained in:
Bill Gesner
2020-09-17 23:41:20 +00:00
parent 4c9146ea53
commit 10ac6b9cf0
3 changed files with 316 additions and 79 deletions

View File

@@ -43,6 +43,9 @@ extern "C"
{
#endif
#ifndef LFS_THREAD_SAFE
#define LFS_THREAD_SAFE 0
#endif
// Macros, may be replaced by system specific wrappers. Arguments to these
// macros must not have side-effects as the macros can be removed for a smaller