Home
last modified time | relevance | path

Searched refs:prioceiling (Results 1 – 14 of 14) sorted by relevance

/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/
DIt_posix_mutex_082.c43 UINT32 prioceiling; in Testcase() local
53 ret = pthread_mutex_getprioceiling(&mutex, &prioceiling); in Testcase()
55 if (prioceiling != OS_TASK_PRIORITY_LOWEST) { in Testcase()
56 ICUNIT_ASSERT_EQUAL(1, 0, prioceiling); in Testcase()
59 prioceiling = 8; // 8, task priority. in Testcase()
60 ret = pthread_mutex_setprioceiling(&mutex, prioceiling, NULL); in Testcase()
63 ret = pthread_mutex_getprioceiling(&mutex, &prioceiling); in Testcase()
65 if (prioceiling != 8) { // 8, task priority. in Testcase()
66 ICUNIT_ASSERT_EQUAL(1, 0, prioceiling); in Testcase()
69 prioceiling = 6; // 6, task priority. in Testcase()
[all …]
DIt_posix_mutex_081.c43 INT32 prioceiling; in Testcase() local
48 ICUNIT_ASSERT_EQUAL(1, 0, prioceiling); in Testcase()
54 prioceiling = mattr.prioceiling; in Testcase()
55 if (prioceiling != OS_TASK_PRIORITY_LOWEST) { in Testcase()
56 ICUNIT_ASSERT_EQUAL(1, 0, prioceiling); in Testcase()
62 prioceiling = mattr.prioceiling; in Testcase()
63 if (prioceiling != 0) { in Testcase()
64 ICUNIT_ASSERT_EQUAL(1, 0, prioceiling); in Testcase()
69 ICUNIT_ASSERT_EQUAL(1, 0, prioceiling); in Testcase()
74 ICUNIT_ASSERT_EQUAL(1, 0, prioceiling); in Testcase()
DIt_posix_mutex_013.c42 int prioceiling, ret; in Testcase() local
44 prioceiling = sched_get_priority_max(SCHED_RR); in Testcase()
45 prioceiling++; in Testcase()
48 ret = pthread_mutexattr_setprioceiling(&mta, prioceiling); in Testcase()
DIt_posix_mutex_014.c56 int prioceiling, ret; in Testcase() local
59 prioceiling = sched_get_priority_min(SCHED_RR); in Testcase()
60 prioceiling--; in Testcase()
63 ret = pthread_mutexattr_setprioceiling(&mta, prioceiling); in Testcase()
DIt_posix_mutex_017.c57 int prioceiling, ret; in Testcase() local
61 ret = pthread_mutexattr_getprioceiling(&mta, &prioceiling); in Testcase()
DIt_posix_mutex_033.c58 int err, prioceiling; in Testcase() local
65 err = pthread_mutex_getprioceiling(&mutex, &prioceiling); in Testcase()
DIt_posix_mutex_032.c55 int err, prioceiling; in Testcase() local
72 err = pthread_mutex_getprioceiling(&mutex, &prioceiling); in Testcase()
DIt_posix_mutex_034.c58 int err, prioceiling; in Testcase() local
75 err = pthread_mutex_getprioceiling(&mutex, &prioceiling); in Testcase()
DIt_posix_mutex_035.c58 int err, prioceiling; in Testcase() local
75 err = pthread_mutex_getprioceiling(&mutex, &prioceiling); in Testcase()
/kernel/liteos_a/compat/posix/src/
Dpthread_mutex.c68 int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, int prioceiling) in pthread_mutexattr_setprioceiling() argument
70 return LOS_MuxAttrSetPrioceiling(attr, prioceiling); in pthread_mutexattr_setprioceiling()
73 int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr, int *prioceiling) in pthread_mutexattr_getprioceiling() argument
75 return LOS_MuxAttrGetPrioceiling(attr, prioceiling); in pthread_mutexattr_getprioceiling()
78 int pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int prioceiling, int *oldPrioceiling) in pthread_mutex_setprioceiling() argument
80 return LOS_MuxSetPrioceiling(mutex, prioceiling, oldPrioceiling); in pthread_mutex_setprioceiling()
83 int pthread_mutex_getprioceiling(const pthread_mutex_t *mutex, int *prioceiling) in pthread_mutex_getprioceiling() argument
85 return LOS_MuxGetPrioceiling(mutex, prioceiling); in pthread_mutex_getprioceiling()
/kernel/liteos_a/kernel/base/ipc/
Dlos_mux.c51 attr->prioceiling = OS_TASK_PRIORITY_LOWEST; in LOS_MuxAttrInit()
121 LITE_OS_SEC_TEXT UINT32 LOS_MuxAttrGetPrioceiling(const LosMuxAttr *attr, INT32 *prioceiling) in LOS_MuxAttrGetPrioceiling() argument
127 if (prioceiling != NULL) { in LOS_MuxAttrGetPrioceiling()
128 *prioceiling = attr->prioceiling; in LOS_MuxAttrGetPrioceiling()
134 LITE_OS_SEC_TEXT UINT32 LOS_MuxAttrSetPrioceiling(LosMuxAttr *attr, INT32 prioceiling) in LOS_MuxAttrSetPrioceiling() argument
137 (prioceiling < OS_TASK_PRIORITY_HIGHEST) || in LOS_MuxAttrSetPrioceiling()
138 (prioceiling > OS_TASK_PRIORITY_LOWEST)) { in LOS_MuxAttrSetPrioceiling()
142 attr->prioceiling = (UINT8)prioceiling; in LOS_MuxAttrSetPrioceiling()
147 LITE_OS_SEC_TEXT UINT32 LOS_MuxSetPrioceiling(LosMux *mutex, INT32 prioceiling, INT32 *oldPrioceili… in LOS_MuxSetPrioceiling() argument
152 (prioceiling < OS_TASK_PRIORITY_HIGHEST) || in LOS_MuxSetPrioceiling()
[all …]
/kernel/liteos_a/kernel/include/
Dlos_mux.h63 UINT8 prioceiling; member
87 extern UINT32 LOS_MuxAttrGetPrioceiling(const LosMuxAttr *attr, INT32 *prioceiling);
88 extern UINT32 LOS_MuxAttrSetPrioceiling(LosMuxAttr *attr, INT32 prioceiling);
89 extern UINT32 LOS_MuxSetPrioceiling(LosMux *mutex, INT32 prioceiling, INT32 *oldPrioceiling);
90 extern UINT32 LOS_MuxGetPrioceiling(const LosMux *mutex, INT32 *prioceiling);
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/smoke/
DIt_posix_mutex_015.c54 int prioceiling, maxPrio, minPrio, ret; in Testcase() local
64 ret = pthread_mutexattr_getprioceiling(&ma, &prioceiling); in Testcase()
72 if ((prioceiling > minPrio) || (prioceiling < maxPrio)) { in Testcase()
DIt_posix_mutex_016.c56 int prioceiling, maxPrio, minPrio, i; in Testcase() local
74 rc = pthread_mutexattr_getprioceiling(&mta, &prioceiling); in Testcase()
78 if (prioceiling != i) { in Testcase()