Demo program for mbed 5 thread start compile rerror
Fork of mbed-os-example-mbed5-blinky by
Revision 20:34e8d1b03de2, committed 2016-11-04
- Comitter:
- Roietronics
- Date:
- Fri Nov 04 00:29:32 2016 +0000
- Parent:
- 19:1c65f0106b2c
- Commit message:
- switch to none callback version
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Nov 04 00:23:50 2016 +0000
+++ b/main.cpp Fri Nov 04 00:29:32 2016 +0000
@@ -23,8 +23,8 @@
_id(id),
_thread()
{
- // osStatus status = _thread.start(this, &MyTest::myWorker);
- osStatus status = _thread.start(mbed::Callback<void()>((MyTest*)this, &MyTest::myWorker));
+ osStatus status = _thread.start(this, &MyTest::myWorker);
+ // osStatus status = _thread.start(mbed::Callback<void()>((MyTest*)this, &MyTest::myWorker));
}
};
