- fleshing out event system and window manager
- added tests back in for window management
This commit is contained in:
@@ -30,7 +30,11 @@ namespace fennec
|
||||
|
||||
static mutex lock;
|
||||
static dynarray<set<event_listener*>> listeners;
|
||||
static mpscq<event> queue(FENNEC_EVENT_QUEUE_SIZE);
|
||||
static mpscq<event> queue(FENNEC_EVENT_QUEUE_SIZE);
|
||||
|
||||
event_listener::~event_listener() {
|
||||
event::remove_listener(this);
|
||||
}
|
||||
|
||||
void event::handle_events() {
|
||||
lock_guard guard(lock);
|
||||
|
||||
Reference in New Issue
Block a user