Changeset 14602 for trunk/FACT++
- Timestamp:
- 11/10/12 22:41:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r14601 r14602 40 40 // termination. Therefor a list of V8 thread ids is created. 41 41 // 42 // If te mrination has already be signalled, no thread should start running42 // If termination has already be signalled, no thread should start running 43 43 // anymore (thy could, e.g., wait for their locking). So after locking 44 44 // it has to be checked if the thread was terminated already. Note 45 45 // that all calls to Terminate() must be locked to ensure that fThreadId 46 46 // is correct when it is checked. 47 // 48 // The current thread id must be added to fThreadIds _before_ any 49 // function is called after Locking and before execution is given 50 // back to JavaScript, e.g. in script->Run(). So until the thread 51 // is added to the list Terminate will not be executed. If Terminate 52 // is then executed, it is ensured that the current thread is 53 // already in the list. If terminate has been called before 54 // the Locking, the check for the validiy of fThreadId ensures that 55 // nothing is executed. 47 56 // 48 57 // Empty handles: … … 938 947 939 948 Handle<Object> obj = it->second; 940 if ( !obj.IsEmpty())949 if (obj.IsEmpty()) 941 950 return; 942 951 943 952 const Handle<String> onchange = String::New("onchange"); 944 if ( obj->Has(onchange))953 if (!obj->Has(onchange)) 945 954 return; 946 955 947 956 const Handle<Value> val = obj->Get(onchange); 948 if ( val->IsFunction())957 if (!val->IsFunction()) 949 958 return; 950 959
Note:
See TracChangeset
for help on using the changeset viewer.