Searched refs:tid (Results 1 - 5 of 5) sorted by relevance
/vendor/hisilicon/hispark_pegasus/demo/thread_demo/00_thread/ |
H A D | thread.c | 31 osThreadId_t tid = osThreadNew(func, arg, &attr); in newThread() local 32 if (tid == NULL) { in newThread() 35 printf("[Thread Test] osThreadNew(%s) success, thread id: %d.\r\n", name, tid); in newThread() 37 return tid; in newThread() 44 osThreadId_t tid = osThreadGetId(); in threadTest() local 45 printf("[Thread Test] threadTest osThreadGetId, thread id:%p\r\n", tid); in threadTest() 56 osThreadId_t tid = newThread("test_thread", threadTest, "This is a test thread."); in rtosv2_thread_main() local 58 const char *t_name = osThreadGetName(tid); in rtosv2_thread_main() 61 osThreadState_t state = osThreadGetState(tid); in rtosv2_thread_main() 64 osStatus_t status = osThreadSetPriority(tid, osPriorityNormal in rtosv2_thread_main() [all...] |
/vendor/hisilicon/hispark_pegasus/demo/mutex_demo/ |
H A D | mutex.c | 54 osThreadId_t tid = osThreadNew(func, arg, &attr); in newThread() local 55 if (tid == NULL) { in newThread() 58 printf("[Mutex Test]osThreadNew(%s) success, thread id: %d.\r\n", name, tid); in newThread() 60 return tid; in newThread() 80 osThreadId_t tid = osMutexGetOwner(mid); in rtosv2_mutex_main() local 81 printf("[Mutex Test]osMutexGetOwner, thread id: %p, thread name: %s.\r\n", tid, osThreadGetName(tid)); in rtosv2_mutex_main()
|
/vendor/hisilicon/hispark_pegasus/demo/message_demo/ |
H A D | message.c | 32 osThreadId_t tid; member 43 sentry.tid = osThreadGetId(); in sender_thread() 59 osThreadGetName(osThreadGetId()), rentry.count, osThreadGetName(rentry.tid)); in receiver_thread() 69 osThreadId_t tid = osThreadNew(func, arg, &attr); in newThread() local 70 if (tid == NULL) { in newThread() 73 printf("[Message Test] osThreadNew(%s) success, thread id: %d.\r\n", name, tid); in newThread() 75 return tid; in newThread()
|
/vendor/hisilicon/hispark_pegasus/demo/semaphore_demo/ |
H A D | semp.c | 66 osThreadId_t tid = osThreadNew(func, arg, &attr); in newThread() local 67 if (tid == NULL) { in newThread() 70 printf("[Semp Test]osThreadNew(%s) success, thread id: %d.\r\n", name, tid); in newThread() 72 return tid; in newThread()
|
/vendor/hisilicon/hispark_pegasus/demo/coap_demo/ |
H A D | coap_client.c | 131 request->tid = coap_new_message_id(session); in CoapClientSendMsg() 132 (void)CoapNewToken(request->tid, temp_token, DHCP_COAP_TOKEN_LEN); in CoapClientSendMsg()
|
Completed in 4 milliseconds