aboutsummaryrefslogtreecommitdiff
path: root/src/pth.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-09-03 11:38:09 +0930
committerDavid Timber <mieabby@gmail.com>2020-09-03 11:38:09 +0930
commite81c2636cee72af718e99fd98006fa9277de2a65 (patch)
treedffb8cb9b8d9f4eb55a55fedc5d63c8a0ef6c4a3 /src/pth.c
parentf4f959f7842cd9b28500fcd7f506493606376db5 (diff)
* Impl: CNCP
* [htbt] Use randomly generated number for SOLICIT request * Die on pth sync funcs only if debug build * Fix wrong use of pth_mutex_acquire(): use with event can result in failure * [htbt] Take "blackhole" fd as param * Remove unused include to reduce compile time * [htbt] Add const macro values for random msg_id gen * [resolv] Make prne_resolv_prm_t reusable * [resolv] Fix mem leak in proone-resolv * [resolv] Sanity check before returning prm so users don't have to worry about SEGFAULT * Add txtrec-*.sh for CNCP
Diffstat (limited to 'src/pth.c')
-rw-r--r--src/pth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pth.c b/src/pth.c
index 0847403..d82a465 100644
--- a/src/pth.c
+++ b/src/pth.c
@@ -27,8 +27,8 @@ void prne_fin_worker (prne_worker_t *w) {
}
void prne_pth_cv_notify (pth_mutex_t *lock, pth_cond_t *cond, bool broadcast) {
- prne_assert(pth_mutex_acquire(lock, FALSE, NULL));
- prne_assert(pth_cond_notify(cond, broadcast));
+ prne_dbgtrap(pth_mutex_acquire(lock, FALSE, NULL));
+ prne_dbgtrap(pth_cond_notify(cond, broadcast));
pth_mutex_release(lock);
}