[gnome-dvb-daemon] Use void* instead of bool as return value in GThread function
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-dvb-daemon] Use void* instead of bool as return value in GThread function
- Date: Tue, 26 Apr 2011 16:48:08 +0000 (UTC)
commit d46eaa9e015d42f9ea982797def02fb3a2fe4ee9
Author: Sebastian Pölsterl <sebp k-d-w org>
Date: Tue Apr 26 18:45:00 2011 +0200
Use void* instead of bool as return value in GThread function
https://bugs.launchpad.net/gnome-dvb-daemon/+bug/704036
Patch by DimStar
src/EPGScanner.vala | 8 ++++----
src/Scanner.vala | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/EPGScanner.vala b/src/EPGScanner.vala
index ab8934d..6148410 100644
--- a/src/EPGScanner.vala
+++ b/src/EPGScanner.vala
@@ -45,7 +45,7 @@ namespace DVB {
private int stop_counter;
private MainContext context;
private MainLoop loop;
- private unowned Thread<bool> worker_thread;
+ private unowned Thread<void*> worker_thread;
private uint bus_watch_id;
private HashMap<uint, HashSet<Event>> channel_events;
@@ -100,10 +100,10 @@ namespace DVB {
}
/* Main Thread */
- private bool worker () {
+ private void* worker () {
this.loop.run ();
- return true;
+ return null;
}
private void reset () {
@@ -138,7 +138,7 @@ namespace DVB {
this.loop = new MainLoop (this.context, false);
try {
- this.worker_thread = Thread.create<bool> (this.worker, true);
+ this.worker_thread = Thread.create<void*> (this.worker, true);
} catch (ThreadError e) {
log.error ("Could not create thread: %s", e.message);
return false;
diff --git a/src/Scanner.vala b/src/Scanner.vala
index 2eeed08..65afa1f 100644
--- a/src/Scanner.vala
+++ b/src/Scanner.vala
@@ -110,7 +110,7 @@ namespace DVB {
private bool locked;
private MainContext context;
private MainLoop loop;
- private unowned Thread<bool> worker_thread;
+ private unowned Thread<void*> worker_thread;
private bool running;
private uint bus_watch_id;
@@ -158,7 +158,7 @@ namespace DVB {
this.loop = new MainLoop (this.context, false);
try {
- this.worker_thread = Thread.create<bool> (this.worker, true);
+ this.worker_thread = Thread.create<void*> (this.worker, true);
} catch (ThreadError e) {
log.error ("Could not create thread: %s", e.message);
return;
@@ -312,10 +312,10 @@ namespace DVB {
}
/* Main Thread */
- private bool worker () {
+ private void* worker () {
this.loop.run ();
- return true;
+ return null;
}
protected void clear_and_reset_all () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]