Demo program for mbed 5 thread start compile rerror
Fork of mbed-os-example-mbed5-blinky by
Diff: main.cpp
- Revision:
- 19:1c65f0106b2c
- Parent:
- 18:7f2d0c1cfb33
- Child:
- 20:34e8d1b03de2
diff -r 7f2d0c1cfb33 -r 1c65f0106b2c main.cpp --- a/main.cpp Thu Nov 03 21:17:48 2016 +0000 +++ b/main.cpp Fri Nov 04 00:23:50 2016 +0000 @@ -16,16 +16,15 @@ MyTest* t = (MyTest*)arge; int i; i++; - osSignalSet(_id, mySignal); - - } + osSignalSet(t->_id, mySignal); + } MyTest(osThreadId id) : _id(id), _thread() { - osStatus status = _thread.start(this, &MyTest::myWorker); -// _thread.start(callback(this, &Test::myWorker)); + // osStatus status = _thread.start(this, &MyTest::myWorker); + osStatus status = _thread.start(mbed::Callback<void()>((MyTest*)this, &MyTest::myWorker)); } };