thread hangs

Top  Previous  Next

calling par.h function when par_sema already claimed


If the thread that calls one of the par.h functions has already claimed the par_sema semaphore itself, the function can never return. This is because it waits forever in vain for par_sema to be signalled.