Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78197891
worker.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 19, 02:18
Size
734 B
Mime Type
text/x-c
Expires
Wed, Aug 21, 02:18 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19988666
Attached To
R2664 SHRINE MedCo Fork
worker.h
View Options
#ifndef WORKER_H_
#define WORKER_H_
#include <node.h>
#include <node_object_wrap.h>
#include <v8.h>
using namespace node;
using namespace v8;
class Worker {
public:
Worker();
virtual ~Worker();
// libuv's request struct.
uv_work_t request;
// Callback
v8::Persistent<v8::Function> callback;
// Parameters
void *parameters;
// Results
void *return_value;
// Did we raise an error
bool error;
// The error message
char *error_message;
// Error code if not message
int error_code;
// Any return code
int return_code;
// Method we are going to fire
void (*execute)(Worker *worker);
Handle<Value> (*mapper)(Worker *worker);
};
#endif // WORKER_H_
Event Timeline
Log In to Comment