Skip to content

Instantly share code, notes, and snippets.

@swilly22
Last active September 15, 2019 07:47
Show Gist options
  • Save swilly22/394d1eb95908c5acb9d492a786891a59 to your computer and use it in GitHub Desktop.
Save swilly22/394d1eb95908c5acb9d492a786891a59 to your computer and use it in GitHub Desktop.
function Query_Execute() {
/* Call ExecutionPlan_Execute on a different thread
* and wait for it to exit */
char *error = NULL;
pthread_t thread;
pthread_create(&thread, NULL, ExecutionPlan_Execute, NULL);
pthread_join(thread, &error);
if(error != NULL) {
// Exception been thrown.
reportError(error);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment