Mutex owned and owner were not initialized by mutex_init. Combined owned and owner as they had no separate value any more

This commit is contained in:
graham sanderson
2021-01-28 09:05:36 -06:00
committed by Graham Sanderson
parent e95df76a19
commit 90ce1faa14
2 changed files with 5 additions and 11 deletions

View File

@ -31,8 +31,7 @@ extern "C" {
typedef struct __packed_aligned mutex {
lock_core_t core;
bool owned;
int8_t owner;
int8_t owner; //! core number or -1 for unowned
} mutex_t;
/*! \brief Initialise a mutex structure