pub const NO_CHAIN: u32 = 0x02;
Error is signalled because the semaphore is of a non-zero value and neither of the chain bits is set.