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

Commit

Permalink
Throw exception if create pthread failed (#2300)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darin726 authored and YorkShen committed Apr 10, 2019
1 parent 84192ba commit f3f08b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions weex_core/Source/android/multiprocess/weex_js_connection.cpp
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

0 comments on commit f3f08b6

Please sign in to comment.