MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _timeout_ignored

Function _timeout_ignored

components/lwp/lwp_futex.c:873–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871#include <syscall_generic.h>
872
873rt_inline rt_bool_t _timeout_ignored(int op)
874{
875 /**
876 * if (op &
877 * (FUTEX_WAKE|FUTEX_FD|FUTEX_WAKE_BITSET|FUTEX_TRYLOCK_PI|FUTEX_UNLOCK_PI))
878 * was TRUE `timeout` should be ignored by implementation, according to
879 * POSIX futex(2) manual. since only FUTEX_WAKE is implemented in rt-smart,
880 * only FUTEX_WAKE was omitted currently
881 */
882 return ((op & (FUTEX_WAKE)) || (op & (FUTEX_REQUEUE)) ||
883 (op & (FUTEX_CMP_REQUEUE)) || (op & (FUTEX_UNLOCK_PI)) ||
884 (op & (FUTEX_TRYLOCK_PI)));
885}
886
887/**
888 * @brief System call interface for futex operations

Callers 1

sys_futexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected