Mercurial > libjeffpc > experimental
changeset 999:1475c8609196
synch: stash the condition variable name in the condition variable
This was supposed to be done during the great refactor in 2019.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Mon, 22 Feb 2021 08:21:03 -0500 |
parents | 3425a53b6499 |
children | 76e588fedba8 |
files | synch.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/synch.c Fri Jan 01 15:53:27 2021 -0500 +++ b/synch.c Mon Feb 22 08:21:03 2021 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2020 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> + * Copyright (c) 2011-2021 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -667,6 +667,11 @@ c->info.magic = (uintptr_t) &c->info; c->info.type = SYNCH_TYPE_COND; + +#ifdef JEFFPC_LOCK_TRACKING + c->info.lc = NULL; + c->info.name = where->condname; +#endif } static void verify_cond_destroy(const struct lock_context *where, struct cond *c)