diff options
author | Thomas White <taw27@cam.ac.uk> | 2008-11-24 15:27:54 +0000 |
---|---|---|
committer | Thomas White <taw27@cam.ac.uk> | 2008-11-24 15:27:54 +0000 |
commit | 54d3959c6d4f0af9a278c957e1459f0e125243c3 (patch) | |
tree | 692a95df10cfcdd7b583d0d9f7d30fe7065d649c /src/accelerometers.c | |
parent | 9ed5bec39c0fcbed0f6d970f938d10244e9ef67c (diff) |
Make the accel thread belong to "main", join it on exit
Diffstat (limited to 'src/accelerometers.c')
-rw-r--r-- | src/accelerometers.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/accelerometers.c b/src/accelerometers.c index e1e3230..fbc749d 100644 --- a/src/accelerometers.c +++ b/src/accelerometers.c @@ -159,11 +159,7 @@ static void *accel_work(void *data) { } -void accelerometer_start() { - - GThread *work_thread; - - work_thread = g_thread_create(accel_work, NULL, TRUE, NULL); - +GThread *accelerometer_start() { + return g_thread_create(accel_work, NULL, TRUE, NULL); } |