Last active
December 4, 2015 00:33
-
-
Save oskar-szulc/3cd71d93475f9bab6543 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <emscripten.h> | |
extern "C" | |
{ | |
void process(char* input) | |
{ | |
worker_handle ai_worker = emscripten_create_worker("worker.js"); | |
emscripten_call_worker(ai_worker, "start", input, strlen(input) + 1, workerCallback, (void*)0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment