bindings to TI ENET LLD specific thread, mutex and semaphore functions
Go to the source code of this file.
Typedefs | |
| typedef struct cb_lld_sem | cb_lld_sem_t |
| typedef struct cb_lld_task | cb_lld_task_t |
Functions | |
| int | cb_lld_sem_init (CB_SEM_T *sem, int pshared, unsigned int value) |
| Initializes a semaphore. More... | |
| int | cb_lld_sem_wait (CB_SEM_T *sem) |
| Waits on a semaphore until it becomes available. More... | |
| int | cb_lld_sem_trywait (CB_SEM_T *sem) |
| Attempts to wait on a semaphore without blocking. To know if the semaphore was acquired, get the return value from the cb_lld_sem_wait_status(). If the return value is 1, then the semaphore was acquired. Otherwise, the semaphore was not acquired. More... | |
| int | cb_lld_sem_timedwait (CB_SEM_T *sem, struct timespec *abstime) |
| Waits on a semaphore until it becomes available or until a timeout occurs. To know if the semaphore was acquired, refer to the cb_lld_sem_wait_status(). More... | |
| int | cb_lld_sem_post (CB_SEM_T *sem) |
| Posts (signals) a semaphore, releasing a waiting thread. More... | |
| int | cb_lld_sem_getvalue (CB_SEM_T *sem, int *sval) |
| return the count of a semaphore More... | |
| int | cb_lld_sem_destroy (CB_SEM_T *sem) |
| Destroys a semaphore. More... | |
| int | cb_lld_sem_wait_status (CB_SEM_T *sem) |
| Get the semaphore wait status. The return value of this function determines the wait status of cb_lld_sem_wait(), cb_lld_sem_trywait() and cb_lld_sem_timedwait() More... | |
| int | cb_lld_mutex_init (CB_THREAD_MUTEX_T *mutex, CB_THREAD_MUTEXATTR_T attr) |
| Initializes a mutex. More... | |
| static int | cb_lld_mutex_init_protect (void *mutex) |
| Initializes a mutex that will be protected by the UB_PROTECTED_FUNC_VOID(). More... | |
| int | cb_lld_mutex_destroy (CB_THREAD_MUTEX_T *mutex) |
| Destroys a mutex. More... | |
| static void | cb_lld_mutex_destroy_protect (void *mutex) |
| Destroy a mutex that will be protected by the UB_PROTECTED_FUNC_VOID(). More... | |
| int | cb_lld_mutex_lock (CB_THREAD_MUTEX_T *mutex) |
| Locks a mutex. More... | |
| int | cb_lld_mutex_unlock (CB_THREAD_MUTEX_T *mutex) |
| Unlocks a mutex. More... | |
| int | cb_lld_mutex_trylock (CB_THREAD_MUTEX_T *mutex) |
| Attempts to lock a mutex without blocking. More... | |
| int | cb_lld_mutex_timedlock (CB_THREAD_MUTEX_T *mutex, struct timespec *abstime) |
| Locks a mutex and waits until a timeout occurs. More... | |
| int | cb_lld_task_create (CB_THREAD_T *th, void *attr, void *(*func)(void *), void *arg) |
| Creates a new thread. This function creates a new thread with the specified attributes and starts executing the specified function with the provided argument. More... | |
| int | cb_lld_task_join (CB_THREAD_T th, void **retval) |
| Waits for a thread to terminate. This function waits for the specified thread to terminate. More... | |
| void | cb_lld_task_exit (void *retval) |
| Terminates the calling thread. More... | |
| int | cb_killproc (int64_t objnum, bool thread_mode) |
| Kill thread by ID. More... | |
| void | cb_waitproc (int64_t objnum, bool thread_mode) |
| Wait process to be finished. More... | |