I am trying to create a lock using sem_wait()
and I have a printf
before and after the sem_wait
call. (I do not see this being printed: printf("after sem wait ");
) The sem_wait
call never returns.
sem_t* sem;
Thank you
int 32_t retVal = -1;
printf("before sem wait ");
retVal = sem_wait(sem);
printf("after sem wait ");
How do I debug this issue?