diff options
author | Christopher Haster <chaster@utexas.edu> | 2020-11-28 20:15:23 +0300 |
---|---|---|
committer | Christopher Haster <chaster@utexas.edu> | 2020-12-04 08:46:59 +0300 |
commit | 00a9ba7826318408d280aafe5dc527a43b2c965d (patch) | |
tree | 77b0a24a7dadd72edcc4828409fb21a13325bb8e /lfs.h | |
parent | fc6988c7c3c796ffcb7973e5022321f87ede44fc (diff) |
Tweaked thread-safe implementation
- Stayed on non-system include for lfs_util.h for now
- Named internal functions "lfs_functionraw"
- Merged lfs_fs_traverseraw
- Added LFS_LOCK/UNLOCK macros
- Changed LFS_THREADSAFE from 1/0 to defined/undefined to
match LFS_READONLY
Diffstat (limited to 'lfs.h')
-rw-r--r-- | lfs.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,7 +9,7 @@ #include <stdint.h> #include <stdbool.h> -#include <lfs_util.h> +#include "lfs_util.h" #ifdef __cplusplus extern "C" @@ -174,7 +174,7 @@ struct lfs_config { // are propogated to the user. int (*sync)(const struct lfs_config *c); -#if LFS_THREADSAFE +#ifdef LFS_THREADSAFE // Lock the underlying block device. Negative error codes // are propogated to the user. int (*lock)(const struct lfs_config *c); |