Race condition prevents working completely
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xmms-alarm (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: xmms-alarm
There is a race condition at the start of alarm_start_
Here comes the patch :
diff -ru xmms-alarm-
--- xmms-alarm-
+++ xmms-alarm-
@@ -57,6 +57,7 @@
static pthread_t start_tid; /* thread id of alarm loop */
static pthread_t stop_tid; /* thread id of stop loop */
static pthread_mutex_t fader_lock = PTHREAD_
+static pthread_mutex_t start_lock = PTHREAD_
static GeneralPlugin alarm_plugin;
@@ -880,6 +881,9 @@
unsigned int play_start = 0;
guint today;
+ pthread_
+ pthread_
+
while(start_tid != 0)
{
/* sit around and wait for the faders to not be doing anything */
@@ -1080,7 +1084,9 @@
alarm_
/* start the main thread running */
+ pthread_
start_tid = alarm_thread_
+ pthread_
Please apply and notify upstream (if any still alive).
Ubuntu no longer ships xmms-alarm.