[rtems-libbsd commit] condvar01: Initialize mutex

Sebastian Huber sebh at rtems.org
Tue Jun 23 07:15:09 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    b5cdb953370e1868c6c030c9aca61f5e0d5aaaa8
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=b5cdb953370e1868c6c030c9aca61f5e0d5aaaa8

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jun 23 09:13:55 2015 +0200

condvar01: Initialize mutex

---

 testsuite/condvar01/test_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testsuite/condvar01/test_main.c b/testsuite/condvar01/test_main.c
index 53c9815..09c08fa 100644
--- a/testsuite/condvar01/test_main.c
+++ b/testsuite/condvar01/test_main.c
@@ -371,6 +371,7 @@ test_main(void)
 
 	rtems_resource_snapshot_take(&snapshot);
 
+	mtx_init(&ctx->mtx, "test", NULL, MTX_DEF);
 	cv_init(&ctx->cv, "test");
 	assert(strcmp(cv_wmesg(&ctx->cv), "test") == 0);
 




More information about the vc mailing list