Skip to content

Commit

Permalink
open_posix: update pthread_cond_timedwait testcase
Browse files Browse the repository at this point in the history
add initialization of mutex and cond in pthread_cond_timedwait_4_3

Signed-off-by: haopengxiang <[email protected]>
Reviewed-by: Cyril Hrubis <[email protected]>
  • Loading branch information
pengxianghao21 authored and metan-ucw committed Jan 9, 2024
1 parent d7e5e10 commit db4a4de
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ typedef struct {
static struct {
pthread_mutex_t mtx;
pthread_cond_t cnd;
} data;
} data = {
PTHREAD_MUTEX_INITIALIZER,
PTHREAD_COND_INITIALIZER
};

/* the following function keeps on sending the signal to the process */
static void *sendsig(void *arg)
Expand Down

0 comments on commit db4a4de

Please sign in to comment.