diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-31 10:51:43 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-31 10:51:43 -0700 |
commit | 7e6a8cfd877ee6684fc2fb0db84b60ae0304d87e (patch) | |
tree | f2146edae9c1e262518da8bf397289ecb72cfe52 /system/include | |
parent | e1356dc8ccddfb8508c72ac8c1b228ad231ae7fd (diff) |
rename worker_t to worker_handle
Diffstat (limited to 'system/include')
-rw-r--r-- | system/include/emscripten/emscripten.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h index 6c421eb5..45ae7a8f 100644 --- a/system/include/emscripten/emscripten.h +++ b/system/include/emscripten/emscripten.h @@ -223,14 +223,14 @@ void emscripten_async_prepare_data(char* data, int size, const char *suffix, voi * */ -typedef int worker_t; +typedef int worker_handle; /* * Create and destroy workers. A worker must be compiled separately * from the main program, and with the BUILD_AS_WORKER flag set to 1. */ -worker_t emscripten_create_worker(const char *url); -void emscripten_destroy_worker(worker_t worker); +worker_handle emscripten_create_worker(const char *url); +void emscripten_destroy_worker(worker_handle worker); /* * Asynchronously call a worker. @@ -259,7 +259,7 @@ void emscripten_destroy_worker(worker_t worker); * @callback the callback with the response (can be null) * @arg an argument to be passed to the callback */ -void emscripten_call_worker(worker_t worker, const char *funcname, char *data, int size, void (*callback)(char *, int, void*), void *arg); +void emscripten_call_worker(worker_handle worker, const char *funcname, char *data, int size, void (*callback)(char *, int, void*), void *arg); /* * Sends a response when in a worker call. Should only be @@ -275,7 +275,7 @@ void emscripten_worker_respond(char *data, int size); * check on the status of the worker to see how busy it is, and do * basic decisions about throttling. */ -int emscripten_get_worker_queue_size(worker_t worker); +int emscripten_get_worker_queue_size(worker_handle worker); /* * Profiling tools. |