Roxen.git / server / etc / modules / JavaModule.pmod

version» Context lines:

Roxen.git/server/etc/modules/JavaModule.pmod:120:   protected object bt_get_type = FIND_METHOD (backtrace_class, "getType", "()Ljava/lang/String;");      protected object natives_bind1, natives_bind2, natives_bind3,    natives_bind4, natives_bind5;      protected mapping(object:object) jotomod = set_weak_flag( ([]), 1 );   protected mapping(object:object) jotoconf = set_weak_flag( ([]), 1 );   protected mapping(object:object) conftojo = set_weak_flag( ([]), 1 );   protected mapping(object:object) jotoid = set_weak_flag( ([]), 1 );    - #if constant(thread_create) +    #define LOCK() object _key=mutex->lock()   #define UNLOCK() destruct(_key)   protected object mutex=Thread.Mutex(); - #else - #define LOCK() 0 - #define UNLOCK() 0 - #endif +          protected void check_exception(object|void e)   {    if(!e) {    if(!(e = jvm->exception_occurred()))    return;    jvm->exception_clear();    }    array bt = backtrace();