Commit Graph

10 Commits

Author SHA1 Message Date
Avi Kivity
e659c7fafc Add specializations to make_shared 2014-09-03 16:22:27 +03:00
Avi Kivity
144da7d568 core: be more friendly to debuggers 2014-09-03 11:42:49 +03:00
Avi Kivity
48f570f57c core: add shared_ptr<> smart pointer
Just like std::shared_ptr<>, except no atomics.
2014-09-02 19:08:52 +03:00
Avi Kivity
93f1af6f33 core: add array_map<>
A map implemented using an array, for fast lookups in a small contiguous
search space.
2014-09-01 15:18:13 +03:00
Avi Kivity
b397ac699a core: implement timers 2014-09-01 13:01:06 +03:00
Avi Kivity
e1f14eded4 posix: timerfd support 2014-09-01 13:01:06 +03:00
Avi Kivity
1b6892abf8 core: switch read_some() to use read(), not recv()
Can be used on non-sockets.
2014-09-01 13:01:06 +03:00
Avi Kivity
32f8a84949 core: add reactor::start() to obtain an initial future<>
The future becomes ready when the system starts running.  This makes it
easier to start from a known state.
2014-09-01 13:01:06 +03:00
Avi Kivity
105015b552 Import timer wheel code from OSv 2014-09-01 13:01:06 +03:00
Avi Kivity
c77f77ee3f build: organize files into a directory structure 2014-08-31 21:29:13 +03:00