mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
linux: Implement libuv message loop polling.
This commit is contained in:
@@ -15,9 +15,17 @@ class NodeBindingsLinux : public NodeBindings {
|
||||
explicit NodeBindingsLinux(bool is_browser);
|
||||
virtual ~NodeBindingsLinux();
|
||||
|
||||
virtual void RunMessageLoop() OVERRIDE;
|
||||
|
||||
private:
|
||||
// Called when uv's watcher queue changes.
|
||||
static void OnWatcherQueueChanged(uv_loop_t* loop);
|
||||
|
||||
virtual void PollEvents() OVERRIDE;
|
||||
|
||||
// Epoll to poll for uv's backend fd.
|
||||
int epoll_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(NodeBindingsLinux);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user