/ohos5.0/foundation/communication/dsoftbus/tests/adapter/unittest/ |
H A D | softbus_thread_test.cpp | 439 SoftBusThreadAttr threadAttr = {0}; variable 452 SoftBusThreadAttr threadAttr = {0}; variable 484 SoftBusThreadAttr threadAttr = {0}; variable 503 SoftBusThreadAttr threadAttr = {0}; variable 507 threadAttr.taskName = "ThreadTask"; 523 SoftBusThreadAttr threadAttr = {0}; variable 542 SoftBusThreadAttr threadAttr = {0}; variable 561 SoftBusThreadAttr threadAttr = {0}; variable 580 SoftBusThreadAttr threadAttr = {0}; variable 599 SoftBusThreadAttr threadAttr = {0}; variable [all …]
|
/ohos5.0/foundation/communication/dsoftbus/adapter/common/kernel/posix/ |
H A D | softbus_adapter_thread.c | 125 if (threadAttr == NULL) { in SoftBusThreadAttrInit() 131 threadAttr->policy = SOFTBUS_SCHED_OTHER; in SoftBusThreadAttrInit() 133 threadAttr->policy = SOFTBUS_SCHED_RR; in SoftBusThreadAttrInit() 136 threadAttr->stackSize = 0; in SoftBusThreadAttrInit() 137 threadAttr->prior = SOFTBUS_PRIORITY_DEFAULT; in SoftBusThreadAttrInit() 138 threadAttr->taskName = NULL; in SoftBusThreadAttrInit() 191 switch (threadAttr->prior) { in SoftbusSetThreadPeriority() 218 if ((threadAttr == NULL) || (attr == NULL)) { in SoftBusConfTransPthreadAttr() 241 uint64_t stackSize = threadAttr->stackSize; in SoftBusConfTransPthreadAttr() 267 if (threadAttr == NULL) { in SoftBusThreadCreate() [all …]
|
/ohos5.0/foundation/systemabilitymgr/samgr_lite/samgr/adapter/posix/ |
H A D | thread_adapter.c | 70 pthread_attr_t threadAttr; in THREAD_Create() local 71 pthread_attr_init(&threadAttr); in THREAD_Create() 72 pthread_attr_setstacksize(&threadAttr, (attr->stackSize | MIN_STACK_SIZE)); in THREAD_Create() 78 pthread_attr_setinheritsched(&threadAttr, PTHREAD_EXPLICIT_SCHED); in THREAD_Create() 79 pthread_attr_setschedpolicy(&threadAttr, SCHED_RR); in THREAD_Create() 80 pthread_attr_setschedparam(&threadAttr, &sched); in THREAD_Create() 83 int errno = pthread_create(&threadId, &threadAttr, run, argv); in THREAD_Create()
|
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/innerkits/ |
H A D | graphic_thread.h | 47 pthread_attr_t threadAttr; in ThreadCreate() 48 pthread_attr_init(&threadAttr); in ThreadCreate() 49 pthread_attr_setdetachstate(&threadAttr, PTHREAD_CREATE_DETACHED); in ThreadCreate() 51 pthread_attr_setstacksize(&threadAttr, attr->stackSize); in ThreadCreate() 53 pthread_attr_setschedparam(&threadAttr, &sched); in ThreadCreate() 56 int ret = pthread_create(&threadId, &threadAttr, entry, arg); in ThreadCreate()
|
/ohos5.0/foundation/communication/ipc/ipc/test/rpc/socket_trans/src/ |
H A D | rpc_mini_socket_trans.c | 184 pthread_attr_t threadAttr; in OpenTcpServerSocket() local 185 ret = pthread_attr_init(&threadAttr); in OpenTcpServerSocket() 191 if (pthread_attr_setstacksize(&threadAttr, DEFAULT_THREAD_STACK_SIZE) != 0) { in OpenTcpServerSocket() 196 ret = pthread_create(&threadId, &threadAttr, HandleAccept, (void *)&clientFd); in OpenTcpServerSocket() 218 pthread_attr_t threadAttr; in StartListen() local 219 int ret = pthread_attr_init(&threadAttr); in StartListen() 225 if (pthread_attr_setstacksize(&threadAttr, DEFAULT_THREAD_STACK_SIZE) != 0) { in StartListen() 285 pthread_attr_t threadAttr; in HandleConnect() local 286 int ret = pthread_attr_init(&threadAttr); in HandleConnect() 293 if (pthread_attr_setstacksize(&threadAttr, DEFAULT_THREAD_STACK_SIZE) != 0) { in HandleConnect() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/sdk/frame/small/src/ |
H A D | softbus_client_stub.c | 142 SoftBusThreadAttr threadAttr; in StartDeathProcTask() local 144 ret = SoftBusThreadAttrInit(&threadAttr); in StartDeathProcTask() 150 threadAttr.detachState = SOFTBUS_THREAD_DETACH; in StartDeathProcTask() 151 threadAttr.policy = SOFTBUS_SCHED_RR; in StartDeathProcTask() 152 threadAttr.taskName = "OS_deathTsk"; in StartDeathProcTask() 153 ret = SoftBusThreadCreate(&tid, &threadAttr, DeathProcTask, NULL); in StartDeathProcTask()
|
/ohos5.0/foundation/communication/dsoftbus/adapter/common/include/ |
H A D | softbus_adapter_thread.h | 126 int32_t SoftBusThreadAttrInit(SoftBusThreadAttr *threadAttr); 127 int32_t SoftBusThreadCreate(SoftBusThread *thread, SoftBusThreadAttr *threadAttr, void *(*threadEnt…
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/ |
H A D | pan_network.cpp | 333 pthread_attr_t threadAttr; in CreateThread() local 335 pthread_attr_init(&threadAttr); in CreateThread() 336 pthread_attr_setdetachstate(&threadAttr, PTHREAD_CREATE_JOINABLE); in CreateThread() 338 if (pthread_create(&threadId, &threadAttr, startRoutine, arg) != 0) { in CreateThread()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/br/ |
H A D | br_mock.cpp | 168 SoftBusThread *thread, SoftBusThreadAttr *threadAttr, void *(*threadEntry) (void *), void *arg) in SoftBusThreadCreate() argument 170 return GetConnectionBrInterface()->SoftBusThreadCreate(thread, threadAttr, threadEntry, arg); in SoftBusThreadCreate()
|
H A D | br_mock.h | 42 …SoftBusThread *thread, SoftBusThreadAttr *threadAttr, void *(*threadEntry) (void *), void *arg) = …
|
/ohos5.0/foundation/communication/dsoftbus/core/common/message_handler/ |
H A D | message_handler.c | 208 SoftBusThreadAttr threadAttr; in StartNewLooperThread() local 210 SoftBusThreadAttrInit(&threadAttr); in StartNewLooperThread() 211 threadAttr.taskName = looper->context->name; in StartNewLooperThread() 212 threadAttr.stackSize = MAINLOOP_STACK_SIZE; in StartNewLooperThread() 213 int32_t ret = SoftBusThreadCreate(&tid, &threadAttr, LoopTask, looper); in StartNewLooperThread()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/hid_host/ |
H A D | hid_host_uhid.cpp | 290 pthread_attr_t threadAttr; in CreateThread() local 292 pthread_attr_init(&threadAttr); in CreateThread() 293 pthread_attr_setdetachstate(&threadAttr, PTHREAD_CREATE_JOINABLE); in CreateThread() 295 if (pthread_create(&threadId, &threadAttr, startRoutine, arg) != 0) { in CreateThread()
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/ipc/src/liteos_a/ |
H A D | ipc_invoker.c | 450 pthread_attr_t threadAttr; in StartCallbackDispatch() local 451 pthread_attr_init(&threadAttr); in StartCallbackDispatch() 452 pthread_attr_setdetachstate(&threadAttr, PTHREAD_CREATE_DETACHED); in StartCallbackDispatch() 455 int32_t ret = pthread_create(&tid, &threadAttr, CallbackDispatch, NULL); in StartCallbackDispatch()
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/ |
H A D | client_trans_file.c | 531 SoftBusThreadAttr threadAttr; in TransCloseFileChannel() local 533 int32_t ret = SoftBusThreadAttrInit(&threadAttr); in TransCloseFileChannel() 544 threadAttr.detachState = SOFTBUS_THREAD_DETACH; in TransCloseFileChannel() 545 ret = SoftBusThreadCreate(&tid, &threadAttr, TransCloseDFileProcTask, args); in TransCloseFileChannel()
|