Note! This project has moved to github.com/armmbed/mbed-events

Dependents:   SimpleHTTPExample

This repository has been superceded

This project has moved to mbed-events

Composable event loops combine the cheap synchronicity of event loops with the composability of preempted threads.

Two modular event queue classes are provided:

  • EventLoop - for loops coupled with a c++ managed thread
  • EventQueue - for manually managed event queues

The Event class takes advantage of the extensibility of FuncPtr to allow an event to be passed through APIs as a normal function.

More information on composable event loops.

Revision:
11:6721568592e5
Parent:
8:3c2a014bd907
Child:
14:5abf2ccf2dbf
--- a/EventLoop.h	Fri Apr 22 02:59:41 2016 -0500
+++ b/EventLoop.h	Fri Apr 22 20:57:16 2016 -0500
@@ -9,6 +9,8 @@
 #include "EventQueue.h"
 #include "Thread.h"
 
+/** Managed queue coupled with its own thread
+ */
 class EventLoop : public EventQueue {
 public:
     /** Create an event loop without starting execution