summaryrefslogtreecommitdiff
path: root/platform/default/run_loop.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [node, glfw] Don't throw in destructorJohn Firebaugh2017-03-101-1/+1
|
* [node, glfw] Remove libuv 0.10 supportJohn Firebaugh2017-03-101-13/+0
|
* [default] uv_run should use UV_RUN_NOWAITThiago Marcos P. Santos2016-07-221-1/+1
| | | | | UV_RUN_ONCE might block and that is not the semantics we expect from RunLoop::runOnce().
* [core] fix pedantic warning messagesKonstantin Käfer2016-06-131-2/+2
|
* [core] Fix RunLoop::run() behavior when called a second timeJohn Firebaugh2016-03-081-0/+1
|
* Revert "[core] libuv unref() not really needed"Thiago Marcos P. Santos2016-02-241-1/+28
| | | | This reverts commit 8a53c1a881c6a5272b647ca267d40fbc435d11d9.
* [core] libuv unref() not really neededThiago Marcos P. Santos2016-02-201-28/+1
| | | | | | | | | | | | The run loop will be kept alive because it has an `AsyncTask`. We also can simple stop the loop with `uv_stop()`. The `RunLoop` is still gonna be the last object to be destroyed because it is the first object to be created in the thread, so by design it won't outlive `Timer`s and `AsyncTask`s. This patch won't change the current behavior, will just make the code simpler.
* [core] Remove RunLoop::{ref,unref}John Firebaugh2016-02-161-25/+1
|
* [core] Add ref counting to the main loopThiago Marcos P. Santos2016-01-201-1/+25
| | | | | | | | Should not be used at all, added for a corner case on OSX network backend where the request is processed on a worker thread managed by OSX and we need to wait for that reply before destroying the thread that pushed the request.
* [core] Get rid of ::unref() for Timer and AsyncTaskThiago Marcos P. Santos2016-01-091-1/+29
| | | | | Not need, legacy from libuv. The RunLoop keep the main loop running until is explicitly no longer needed.
* [core] Better C++ usage on RunLoopThiago Marcos P. Santos2015-12-081-4/+2
| | | | Follow-up of #3179.
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-3/+3
|
* [core] Remove mbgl/util/uv.hppThiago Marcos P. Santos2015-12-011-1/+3
| | | | Now only a few things depend on libuv and they can use it directly.
* [core] Removed libuv dependency from HTTPCurl*Thiago Marcos P. Santos2015-12-011-0/+106
| | | | | Moved the fd watcher to the RunLoop. So far only needs to be implemented by platforms using HTTPCurlRequest et al.
* [core] Port uv::tls to pthreadsThiago Marcos P. Santos2015-12-011-2/+8
|
* [core] Expose fewer RunLoop implementation details in headerJohn Firebaugh2015-12-011-6/+16
|
* [core] Abstract main loop inside RunLoop classThiago Marcos P. Santos2015-12-011-0/+83