Lines Matching defs:thread

115  * exited. This work must be done from a thread other than the one exiting.
123 * Loop over the thread table looking for exited threads. The
217 int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
228 if ((thread == NULL) || (startRoutine == NULL)) {
257 *thread = (pthread_t)taskHandle;
258 ret = InitPthreadData(*thread, &userAttr, name, PTHREAD_DATA_NAME_MAX);
274 *thread = (pthread_t)-1;
308 /* If the thread is the highest thread,it can't schedule in LOS_SemPost. */
323 /* The thread is still running, we must wait for it. */
335 * The thread has become unjoinable while we waited, so we
356 int pthread_join(pthread_t thread, void **retVal)
372 joined = pthread_get_data(thread);
387 * Here, we know that joinee is a thread that has exited and is
413 * Set the detachstate of the thread to "detached". The thread then does not
416 int pthread_detach(pthread_t thread)
426 detached = pthread_get_data(thread);
428 ret = ESRCH; /* No such thread */
460 int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param)
473 /* The parameters seem OK, change the thread. */
479 data = pthread_get_data(thread);
496 (VOID)LOS_TaskPriSet((UINT32)thread, (UINT16)param->sched_priority);
501 int pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param)
515 data = pthread_get_data(thread);
573 /* Store the pointer value in the thread-specific data slot addressed by the key. */
582 /* Retrieve the pointer value in the thread-specific data slot addressed by the key. */
591 * Set cancel state of current thread to ENABLE or DISABLE.
625 * Set cancel type of current thread to ASYNCHRONOUS or DEFERRED.
686 int pthread_cancel(pthread_t thread)
694 data = pthread_get_data(thread);
707 * If the thread has cancellation enabled, and it is in
708 * asynchronous mode, suspend it and set corresponding thread's status.
709 * We also release the thread out of any current wait to make it wake up.
717 * Otherwise the thread has cancellation disabled, in which case
718 * it is up to the thread to enable cancellation
733 * Test for a pending cancellation for the current thread and terminate
734 * the thread if there is one.
749 /* Get current thread id. */
757 /* Compare two thread identifiers. */
782 * Set the cpu affinity mask for the thread
784 int pthread_setaffinity_np(pthread_t thread, size_t cpusetsize, const cpu_set_t* cpuset)
786 INT32 ret = sched_setaffinity(thread, cpusetsize, cpuset);
795 * Get the cpu affinity mask from the thread
797 int pthread_getaffinity_np(pthread_t thread, size_t cpusetsize, cpu_set_t* cpuset)
799 INT32 ret = sched_getaffinity(thread, cpusetsize, cpuset);