Demo program for mbed 5 thread start compile rerror
Fork of mbed-os-example-mbed5-blinky by
Revision 19:1c65f0106b2c, committed 2016-11-04
- Comitter:
- Roietronics
- Date:
- Fri Nov 04 00:23:50 2016 +0000
- Parent:
- 18:7f2d0c1cfb33
- Child:
- 20:34e8d1b03de2
- Commit message:
- mbed-os Thread Start compile bug demo
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
--- 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));
}
};
--- a/mbed-os.lib Thu Nov 03 21:17:48 2016 +0000 +++ b/mbed-os.lib Fri Nov 04 00:23:50 2016 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#21dd7008a1540c02150f1b87c12294301db979bb +https://github.com/ARMmbed/mbed-os/#e2617cc0e17f5c3fc2bae6a589c9bcfd3d1a717b
