Hooks for custom event loop implementation

Registered by Paul "LeoNerd" Evans on 2017-11-02

As well as a basic blocking one, core library needs to provide a function to generate an event loop when given a struct of callbacks; so easy Glib / libuv / etc.. integrations can be made.

Blueprint information

Status:
Complete
Approver:
None
Priority:
High
Drafter:
Paul "LeoNerd" Evans
Direction:
Approved
Assignee:
None
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon v0.3
Started by
Paul "LeoNerd" Evans on 2019-01-28
Completed by
Paul "LeoNerd" Evans on 2019-03-18

Related branches

Sprints

Whiteboard

typedef struct {
  void *(*init)(Tickit *t);
  void (*destroy)(void *data);
  void (*run)(void *data);
  void (*stop)(void *data);
  void *(*watch_io_read)(void *data, int fd, TickitBindFlags flags, TickitCallbackFn *fn, void *user);
  void *(*timer)(void *data, const struct timeval *at, TickitBindFlags flags, TickitCallbackFn *fn, void *user);
  void (*timer_cancel)(void *data, void *cookie);
  void *(*later)(void *data, TickitBindFlags flags, TickitCallbackFn *fn, void *user);
} TickitEventHooks;

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.