This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 tasks
tmpsantos
force-pushed
the
tmpsantos-libuv_abstracted
branch
3 times, most recently
from
November 30, 2015 14:09
5bb52db
to
c95c4ba
Compare
@@ -39,6 +39,10 @@ | |||
], | |||
}, | |||
|
|||
'include_dirs': [ | |||
'../src', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this necessary for? IIRC, we want to use the apps partly as as examples, which means they should avoid using internal includes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one slipped. Removing.
tmpsantos
force-pushed
the
tmpsantos-libuv_abstracted
branch
from
November 30, 2015 22:31
c95c4ba
to
6083882
Compare
It was being used as a normal mutex anyway.
Moved the fd watcher to the RunLoop. So far only needs to be implemented by platforms using HTTPCurlRequest et al.
ASSET=zip make test-* was broken and now works. Also added a test stressing concurrent file access.
Now only a few things depend on libuv and they can use it directly.
Also simplified the code making the logic more linear.
tmpsantos
force-pushed
the
tmpsantos-libuv_abstracted
branch
from
December 1, 2015 09:49
6083882
to
e7b6d72
Compare
This was referenced Jan 5, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This branch reduces the delta between master and the Qt branch that is under development. It enables the platform to reimplement the main loop and get rid of libuv in favor of, say, glib or the Qt main loop.
Wrapping is mostly done by reusing existing
util::
likeutil::Thread
and also by 3 new classes:AsyncTask
: Send asynchronous messages to the main loop where theAsyncTask
object lives, coalescing multiple messages.Timer
: an ordinary timer.RunLoop
: not exactly new but was refactored to allow reimplementation. Consists of a platform main loop, usingAsyncTask
internally for waking up.All these new classes were implemented in a way to be almost a drop-in replacement for the libuv counterparts, making the changes as mild as possible.
AssetFS
andAssetZIP
are exceptions, as they were heavily refactored to useutil::Thread
for doing threaded file I/O instead of libuv workers.For all the newly introduced classes, unit tests were also added and in some cases, like for the
AssetZIP
, broken unit tests were fixed and more were added.This PR also is also a enabler for #2909.