Function linuxcnc_hal_sys::rtapi_sem_take
source · Expand description
‘rtapi_sem_take()’ locks a semaphore. Returns 0 or -EINVAL. If the semaphore is unlocked it returns 0 immediately. If the semaphore is locked, the calling task blocks until the semaphore is unlocked, then it returns 0. Call only from within a realtime task.