Permalink
Browse files

qtcollider: a little clean-up

  • Loading branch information...
1 parent baed293 commit 3a7783760d194b11f0e1851da9c6051129c25a99 @jleben jleben committed Dec 4, 2011
Showing with 7 additions and 10 deletions.
  1. +0 −8 QtCollider/Common.cpp
  2. +7 −2 QtCollider/Common.h
@@ -5,14 +5,6 @@
#include <VMGlobals.h>
#include <PyrLexer.h>
-void QtCollider::lockLang()
-{
- qcDebugMsg(2,"locking lang!");
- pthread_mutex_lock (&gLangMutex);
- qcDebugMsg(2,"locked");
- return;
-}
-
// WARNING: QtCollider::lockLang() must be called before
void QtCollider::runLang (
PyrObjectHdr *receiver,
View
@@ -71,9 +71,14 @@ namespace QtCollider {
Asynchronous
};
- void lockLang();
+ inline void lockLang()
+ {
+ qcDebugMsg(2,"locking lang!");
+ pthread_mutex_lock (&gLangMutex);
+ qcDebugMsg(2,"locked");
+ }
- inline static void unlockLang()
+ inline void unlockLang()
{
pthread_mutex_unlock(&gLangMutex);
qcDebugMsg(2,"unlocked");

0 comments on commit 3a77837

Please sign in to comment.