8 void QtCollider::lockLang()
10 qcDebugMsg(2,"locking lang!");
11 pthread_mutex_lock (&gLangMutex
);
12 qcDebugMsg(2,"locked");
16 // WARNING: QtCollider::lockLang() must be called before
17 void QtCollider::runLang (
18 PyrObjectHdr
*receiver
,
20 const QList
<QVariant
> & args
,
23 VMGlobals
*g
= gMainVMGlobals
;
25 ++g
->sp
; SetObject(g
->sp
, receiver
);
26 Q_FOREACH( QVariant var
, args
) {
28 if( Slot::setVariant( g
->sp
, var
) )
31 runInterpreter(g
, method
, args
.size() + 1);
33 if (result
) slotCopy(result
, &g
->result
);
36 int QtCollider::wrongThreadError ()
38 qcErrorMsg( "You can not use this Qt functionality in the current thread. "
39 "Try scheduling on AppClock instead." );