summaryrefslogtreecommitdiff
path: root/src/drumkitloader.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-25 21:43:48 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-25 21:43:48 +0200
commit3dcc42c508dd798b9034f77e6f83ec75e648936c (patch)
treec45c8d5bfb9ec3c4e7a0ebe8b3d8575434ea1cd7 /src/drumkitloader.h
parent215bade4f4d5b590d03c12fc62f1a20e3fa59ef3 (diff)
Fix crash on 'load drumkit' while another drumkit is already loading.
Diffstat (limited to 'src/drumkitloader.h')
-rw-r--r--src/drumkitloader.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drumkitloader.h b/src/drumkitloader.h
index f614ea0..50b8236 100644
--- a/src/drumkitloader.h
+++ b/src/drumkitloader.h
@@ -49,14 +49,17 @@ public:
bool isDone();
void stop();
+ void skip();
private:
DrumGizmo *drumgizmo;
Semaphore semaphore;
+ Semaphore skip_semaphore;
DrumKit *kit;
bool is_done;
Mutex mutex;
- bool quitit;
+ volatile bool quitit;
+ volatile bool skipit;
};
#endif/*__DRUMGIZMO_DRUMKITLOADER_H__*/