summaryrefslogtreecommitdiff
path: root/libs/surfaces/wiimote
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-12-04 19:24:09 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-12-04 19:24:09 +0000
commit4a3d7877f6b03fac7755f997b945583ba5732d13 (patch)
tree1099df5854224acbb17a650215d7f07710b8babe /libs/surfaces/wiimote
parent478fd92039443743babec98812f10921209f1e5a (diff)
cross-thread handling of SessionEvent allocation/deallocation, with widespread consequences
git-svn-id: svn://localhost/ardour2/branches/3.0@6283 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/wiimote')
-rw-r--r--libs/surfaces/wiimote/wiimote.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/surfaces/wiimote/wiimote.cc b/libs/surfaces/wiimote/wiimote.cc
index 8864a5019f..867e1c38e4 100644
--- a/libs/surfaces/wiimote/wiimote.cc
+++ b/libs/surfaces/wiimote/wiimote.cc
@@ -35,10 +35,10 @@ WiimoteControlProtocol::~WiimoteControlProtocol()
if (wiimote_handle) {
cwiid_close(wiimote_handle);
}
+
std::cerr << "Wiimote: closed" << std::endl;
}
-
bool
WiimoteControlProtocol::probe()
{
@@ -166,11 +166,12 @@ WiimoteControlProtocol::update_led_state()
}
void
-WiimoteControlProtocol::wiimote_main()
+WiimoteControlProtocol::_wiimote_main ()
{
bdaddr_t bdaddr;
unsigned char rpt_mode = 0;
- register_thread("Wiimote Discovery and Callback Thread");
+
+ register_thread ("Wiimote");
wiimote_discovery:
@@ -261,6 +262,7 @@ wiimote_discovery:
std::cerr << "Wiimote: main thread stopped" << std::endl;
+ return 0;
}