summaryrefslogtreecommitdiff
path: root/include/mbgl/storage
Commit message (Collapse)AuthorAgeFilesLines
* Use uv::asyncJohn Firebaugh2015-05-131-2/+2
|
* Remove unusedJohn Firebaugh2015-05-132-5/+0
| | | | | There are no longer any requests made that don't have a run loop to dispatch back to.
* Cancel all pending requests before leavingThiago Marcos P. Santos2015-05-051-2/+0
| | | | | | | | | | | | This still has the unwanted side effect off blocking the Map thread waiting for the workers to return (because they hold a reference to the Map thread main loop). Maybe the only way to solve this would be having a I/O thread for dispatching messages. The Request is not bound anymore to the invoker thread because the workers will request for glyphs, but the reply will arrive at the Map thread.
* Write SQLite tests in terms of ImplJohn Firebaugh2015-05-011-1/+2
|
* Remove Environment::terminate and associated codeJohn Firebaugh2015-04-283-24/+7
| | | | Fixes #1336
* make the request header public as the node module requires itKonstantin Käfer2015-04-171-0/+60
|
* rename SQLiteCache::Thread to SQLiteCache::ImplKonstantin Käfer2015-04-131-2/+2
|
* make implementation files private headersKonstantin Käfer2015-04-138-371/+4
|
* hide Thread<> and separate the Implementation objectKonstantin Käfer2015-04-135-52/+17
|
* convert DefaultFileSource to use util::Thread<>Konstantin Käfer2015-04-104-36/+20
|
* add Thread<T> and RunLoopKonstantin Käfer2015-04-102-28/+18
| | | | | | Thread<T> is a generic thread management object that starts a thread, creates an object T in that thread and calls its .start() function. When the Thread<T> object is destructed (which must happen in the thread that created it), it'll call the object's .stop() function, and wait for thread termination. The .stop() function must somehow get the thread to terminate. Note that object T's constructor/destructor/start()/stop() must be protected/private, and Thread<T> must be declared as a friend class. All public functions may be called from any thread and are exposed through operator->(). RunLoop encapsulates a libuv runloop and has a facility of dispatching function objects to the thread. It can be used either as a worker thread class by itself, or it can be derived from. This commit converts SQLiteCache to derive from RunLoop and removes the custom code used previously for managing the cache thread.
* make sqlite storage more resilient to sporadic errorsKonstantin Käfer2015-04-071-0/+2
| | | | | | | | - catch SQLite exceptions and report them - failed statements are ignored, we're really just caching here, so if it fails we're handling it gracefully elsewhere - handle cases where the database file goes away after we opened it - handle cases where the schema wasn't created after the database file was opened successfully - add tests
* fix rare issue that had the notify and cancel callbacks called in the wrong ↵Konstantin Käfer2015-03-131-4/+6
| | | | order
* remove unused enumKonstantin Käfer2015-03-061-1/+0
|
* scope Requests to an Environment object for easier cancelationKonstantin Käfer2015-03-064-18/+54
| | | | | | | | | we are now scoping all file requests to an environment object. The FileSource implementation treats this as an opaque pointer, but allows canceling all Requests that are associated with that pointer. This is necessary to abort all file requests that originated from a particular Map object. Aborting a file request is different from canceling a file request: A canceled request doesn't have its callback called, while an aborted request will have its callback called with an error, indicating that the environment is going to be shut down.
* fix handling around unique_ptr releasesKonstantin Käfer2015-03-061-1/+1
|
* update uv_zip and add testsKonstantin Käfer2015-02-162-3/+8
|
* code styleKonstantin Käfer2015-02-131-2/+2
|
* make sure that the async handle always gets closedKonstantin Käfer2015-02-131-1/+2
|
* refactor makefileKonstantin Käfer2015-02-046-93/+91
|
* add missing headersKonstantin Käfer2015-02-041-0/+1
|
* don't override std::hashKonstantin Käfer2015-02-042-10/+6
|
* fixes for linuxKonstantin Käfer2015-02-041-0/+1
|
* remove circular shared_ptr and a few other memory leaksKonstantin Käfer2015-02-041-0/+4
|
* rewrite storage layer to be independent of the Map's event loopKonstantin Käfer2015-02-0418-264/+529
|
* Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2014-12-181-0/+27
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: gyp/mbgl-ios.gypi gyp/mbgl-osx.gypi platform/default/asset_request_libuv.cpp src/mbgl/storage/caching_http_file_source.cpp src/mbgl/storage/file_request.cpp src/mbgl/storage/file_request.hpp src/mbgl/storage/file_request_baton.hpp
| * change file:// to asset:// to indicate that they aren't arbitrary filesKonstantin Käfer2014-12-172-27/+27
| | | | | | | | refs #579
| * Make file request overridable by platform implementationsKonstantin Käfer2014-12-171-0/+27
| | | | | | | | refs #579: Android can now rename AssetRequest to FileRequest and implement it differently
* | Fix commitLeith Bade2014-12-063-29/+7
| |
* | Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2014-12-058-233/+66
|\ \ | |/ | | | | | | | | | | | | | | | | | | Conflicts: .gitignore gyp/mbgl-ios.gypi gyp/mbgl-linux.gypi gyp/mbgl-osx.gypi include/mbgl/map/map.hpp src/mbgl/map/map.cpp src/mbgl/storage/caching_http_file_source.cpp
| * Move setAccessToken to CachingHTTPFileSourceJohn Firebaugh2014-12-042-4/+9
| |
| * Add CachingHTTPFileSource::clearLoop()John Firebaugh2014-12-042-0/+4
| | | | | | | | | | | | | | So loop state can be cleaned up in the appropriate thread. This is a hack; loop needs to be externalized from Map. Fixes #686
| * Move setReachability to CachingHTTPFileSourceJohn Firebaugh2014-12-042-2/+2
| |
| * remove usage of relative pathsKonstantin Käfer2014-12-044-6/+6
| |
| * make most headers privateKonstantin Käfer2014-12-049-236/+59
| |
| * Add virtual destructor for FileSourceJohn Firebaugh2014-12-041-0/+1
| |
* | Fixup after mergeLeith Bade2014-12-042-3/+6
| |
* | Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2014-12-046-7/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: include/mbgl/storage/base_request.hpp include/mbgl/storage/file_request_baton.hpp include/mbgl/storage/http_request.hpp include/mbgl/storage/http_request_baton.hpp include/mbgl/util/uv_detail.hpp platform/darwin/http_request_baton_cocoa.mm platform/default/caching_http_file_source.cpp platform/default/http_request_baton_curl.cpp src/map/map.cpp src/storage/base_request.cpp src/storage/file_request.cpp src/storage/file_request_baton.cpp src/storage/http_request.cpp src/storage/http_request_baton.cpp
| * Prefer stdlib to libuv (fixes #688)John Firebaugh2014-12-036-7/+12
| |
* | Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2014-12-041-30/+7
|\ \ | |/ | | | | | | | | | | | | Conflicts: gyp/mbgl-ios.gypi gyp/mbgl-linux.gypi gyp/mbgl-osx.gypi platform/default/caching_http_file_source.cpp
| * break out FileSource as an abstract classMike Morris2014-12-031-30/+7
| | | | | | | | add CachingHTTPFileSource implementation
* | Fix debug buildLeith Bade2014-12-032-4/+4
| |
* | Use uv::async and various other fixesLeith Bade2014-12-034-11/+9
| |
* | Share asset_request between platformsLeith Bade2014-12-022-0/+62
|/
* Use noncopyableJohn Firebaugh2014-11-211-7/+2
|
* move file request baton to its own fileKonstantin Käfer2014-09-301-0/+35
|
* add reachabilityKonstantin Käfer2014-09-293-0/+7
|
* add retries in case of connection failuresKonstantin Käfer2014-09-291-0/+2
|
* don't pass the loop through all function callsKonstantin Käfer2014-09-291-3/+5
|
* add etag support and if-none-match/if-modified-since to cocoa http handlingKonstantin Käfer2014-09-262-1/+2
|