Print this page
enable v8plus_call to be used in any thread

Split Close
Expand all
Collapse all
          --- old/./v8plus_impl.h
          +++ new/./v8plus_impl.h
↓ open down ↓ 21 lines elided ↑ open up ↑
  22   22  
  23   23  #define V8PLUS_THROW(_t, _e, _f, _args...) \
  24   24      v8::ThrowException(v8plus::exception((_t), (_e), (_f), ## _args))
  25   25  #define V8PLUS_THROW_DEFAULT()          V8PLUS_THROW(NULL, NULL, NULL)
  26   26  #define V8PLUS_THROW_DECORATED(_e)      V8PLUS_THROW(NULL, (_e), NULL)
  27   27  
  28   28  #if NODE_MINOR_VERSION > 7 || NODE_MAJOR_VERSION > 0
  29   29  #define NODE_MAKECALLBACK_RETURN
  30   30  #endif
  31   31  
  32      -extern "C" boolean_t v8plus_in_event_thread(void);
  33      -extern "C" void v8plus_crossthread_init(void);
  34      -
  35   32  namespace v8plus {
  36   33  
  37   34  class ObjectWrap;
  38   35  
  39   36  class ObjectWrap : public node::ObjectWrap {
  40   37  public:
  41   38          static void init(v8::Handle<v8::Object>);
  42   39          static v8::Handle<v8::Value> cons(const v8::Arguments &);
  43   40          static ObjectWrap *objlookup(const void *);
  44   41          v8::Handle<v8::Value> call(const char *, int, v8::Handle<v8::Value>[]);
↓ open down ↓ 26 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX