AP_Filesystem: make all semaphores recursive
the cost is very similar and this prevents an easy coding error which can occur on less used code paths
This commit is contained in:
parent
0ca45059ac
commit
23b3000e3a
@ -31,7 +31,7 @@ static bool remount_needed;
|
||||
// use a semaphore to ensure that only one filesystem operation is
|
||||
// happening at a time. A recursive semaphore is used to cope with the
|
||||
// mkdir() inside sdcard_retry()
|
||||
static HAL_Semaphore_Recursive sem;
|
||||
static HAL_Semaphore sem;
|
||||
|
||||
typedef struct {
|
||||
FIL *fh;
|
||||
|
Loading…
Reference in New Issue
Block a user