mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 21:34:25 +08:00
condvar01: Initialize mutex
This commit is contained in:
@@ -371,6 +371,7 @@ test_main(void)
|
|||||||
|
|
||||||
rtems_resource_snapshot_take(&snapshot);
|
rtems_resource_snapshot_take(&snapshot);
|
||||||
|
|
||||||
|
mtx_init(&ctx->mtx, "test", NULL, MTX_DEF);
|
||||||
cv_init(&ctx->cv, "test");
|
cv_init(&ctx->cv, "test");
|
||||||
assert(strcmp(cv_wmesg(&ctx->cv), "test") == 0);
|
assert(strcmp(cv_wmesg(&ctx->cv), "test") == 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user