Mercurial > libjeffpc
changeset 762:ea9254b258c6
synch: keep held lock's type in the held struct
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Thu, 25 Jul 2019 13:21:14 -0400 |
parents | 9aa886a2355b |
children | 2456b4bf6737 |
files | synch.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/synch.c Thu Jul 25 12:45:17 2019 -0400 +++ b/synch.c Thu Jul 25 13:21:14 2019 -0400 @@ -74,6 +74,7 @@ struct held_lock { struct lock *lock; struct lock_context where; + enum synch_type type; }; static __thread struct held_lock held_stack[JEFFPC_LOCK_STACK_DEPTH]; @@ -540,6 +541,7 @@ held->lock = l; held->where = *where; + held->type = SYNCH_TYPE_MUTEX; #endif }