summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Feller <eugen.feller@uni-duesseldorf.de>2007-11-18 23:08:29 +0100
committerEugen Feller <eugen.feller@uni-duesseldorf.de>2007-11-18 23:08:29 +0100
commitf7a5e41a71a8cea87b40edd91bed65d4ed1cc3a7 (patch)
treea6287bc82f49b6208faa56c78c987b7e7355f856
parent2fdb35a611b833fb213e21b08d4467d8d40fce1f (diff)
downloadsmackpad-f7a5e41a71a8cea87b40edd91bed65d4ed1cc3a7.tar.gz
smackpad-f7a5e41a71a8cea87b40edd91bed65d4ed1cc3a7.tar.bz2
added pthread_join
-rw-r--r--smackpad.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/smackpad.c b/smackpad.c
index 93314d8..63aa557 100644
--- a/smackpad.c
+++ b/smackpad.c
@@ -219,6 +219,7 @@ smackpadInitiate (CompDisplay *d,
{
statusLoop=FALSE;
statusPlugin=FALSE;
+ pthread_join(readPositionThread,NULL);
}
return TRUE;
@@ -260,7 +261,10 @@ static void
smackpadFini (CompPlugin *p)
{
if(readPositionThreadStatus==0)
+ {
statusLoop=FALSE;
+ pthread_join(readPositionThread,NULL);
+ }
}