Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Throw exception if create pthread failed #2300

Merged
merged 1 commit into from
Apr 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ IPCSender *WeexJSConnection::start(IPCHandler *handler, IPCHandler *serverHandle
pthread_attr_init(&threadAttr);
pthread_t ipcServerThread;
int i = pthread_create(&ipcServerThread, &threadAttr, newIPCServer, &td);
if(i != 0) {
throw IPCException("failed to create ipc server thread");
}

while (newThreadStatus == UNFINISH) {
continue;
}
Expand Down