Patrick Niklaus
70e899378d
Replace shmctl with waiting on all on-Linux platforms
2017-01-14 01:14:29 +01:00
Patrick Niklaus
dbd70d4884
Throw exception with more helpful error message when shmctl fails
2017-01-14 01:14:29 +01:00
Michael Krasnyk
71044e88f3
try to fix npm tests on windows by direct data loading
2017-01-14 01:14:29 +01:00
Michael Krasnyk
b8f631f6f6
fake waiting by sleep on windows
2017-01-14 01:14:29 +01:00
Michael Krasnyk
3837f9d015
fix windows build
2017-01-14 01:14:29 +01:00
Patrick Niklaus
763ad0d047
Print warning on Windows that we can't wait for clients
2017-01-14 01:14:29 +01:00
Michael Krasnyk
b6f9ec2a33
make facades const to be consistent with const shmem block
2017-01-14 01:14:29 +01:00
Michael Krasnyk
5d3a348b76
removed stale code
2017-01-14 01:14:29 +01:00
Patrick Niklaus
104e23abf3
Restore --max-wait and file_lock for osrm-datastore
2017-01-14 01:14:29 +01:00
Patrick Niklaus
a7bb26f2d6
Remove unnecessary includes and rename in Engine
2017-01-14 01:14:29 +01:00
Michael Krasnyk
710ba20acc
Add 1ms delay as a workaround for "faster" requests than facade update
...
in osrm-routed
2017-01-14 01:14:29 +01:00
Michael Krasnyk
fce8d72895
Change to condvar signaling if data region swapped
2017-01-14 01:14:29 +01:00
Michael Krasnyk
774b8688ca
read_only if shmem size is 0, read_write otherwise
2017-01-14 01:14:29 +01:00
Michael Krasnyk
fe2beb6f68
Respect data constness in Write methods
2017-01-13 22:37:46 +01:00
Michael Krasnyk
71e7d6d6b8
Refactor R-Tree updates and edges loading
2017-01-13 22:37:46 +01:00
Michael Krasnyk
29f736f1c8
Make CSV parsing function generalized
2017-01-13 22:37:46 +01:00
Michael Krasnyk
bb4f13a47c
Use internal logger instead of std stream
2017-01-13 19:55:25 +01:00
Moritz Seemann
bb0b03bbce
fix: do not check datasource_indexes_path twice
...
In storage_config.cpp the file paths are validated, but
datasource_indexes_path got validated twice and datasource_names_path
not at all.
2017-01-13 11:12:02 +01:00
Moritz Seemann
59ad7dddb2
make osm_elements a loop variable, not a local variable
...
The vector osm_elements was created and destroyed in each loop
iteration. It can be kept and cleared instead.
2017-01-13 11:12:02 +01:00
Moritz Seemann
f12fdeb23e
some comments for dynamic_graph.hpp
2017-01-13 11:12:02 +01:00
Moritz Seemann
f896aaf881
fix for DeallocatingVector::back
...
This method actually returned a reference to the one-past-the-last
element instead of the last element.
2017-01-13 11:12:02 +01:00
Moritz Seemann
a2a2cf84d1
fix: do not add duplicate edges
...
Previously duplicate edges were added if their weight was worse.
2017-01-13 11:12:02 +01:00
Moritz Seemann
4e897aad50
constexpr implies const, no need to state it twice
2017-01-13 11:12:02 +01:00
Moritz Seemann
5e8bdbfa0c
fix to prevent (very unlikely) overflow of originalEdges
...
If originalEdges gets initialized with 1 << 28, it will overflow and
thereby be set to 0.
Which defeats the point of checking for overflows in the first place.
2017-01-13 11:12:02 +01:00
Daniel J. Hofmann
fd57c5b48b
Supports destination:street, resolves #3541
2017-01-13 11:07:01 +05:30
Michael Krasnyk
1d4d3b80b5
Fix possible division by zero by clamping latitude to 85.05°
...
Resolves #3530
2017-01-12 16:44:58 +01:00
Daniel J. Hofmann
f82740ed93
Logs the current thread's id in assertions and for requests, resolves #3534
2017-01-12 16:43:03 +01:00
Moritz Kobitzsch
c1f833c80f
fix forks exiting a ferry
2017-01-12 09:58:51 +01:00
Daniel J. Hofmann
813e16b9b4
Fixes default profile symlink not being available
...
Adaption for b8e13d9b
- people are running into this.
2017-01-12 09:34:38 +05:30
Moritz Kobitzsch
06ef3053de
fix coordinate assertion for walking profile with steps
2017-01-11 22:44:23 +01:00
Mathias Gug
9fa7e6c74f
Add BUILD_PACKAGE option.
2017-01-11 03:09:04 +01:00
Mathias Gug
a7d63283ab
Update Package Contact information.
2017-01-11 03:09:04 +01:00
Mathias Gug
78a443bfb2
Add changelog entry.
2017-01-11 03:09:04 +01:00
Mathias Gug
84b8d3cfb9
Support rpm packages.
2017-01-11 03:09:04 +01:00
Daniel J. Hofmann
b3483f95a7
Fixes Sliproads onto a roundabout to be classified as sliproads, resolves #3540
2017-01-09 17:46:05 +01:00
Moritz Kobitzsch
32f63e5e0c
add tests for dedicated turn roads
2017-01-09 17:46:05 +01:00
Daniel J. Hofmann
185e9dc7f3
Removes mlock for osrm-routed, closes #3484
2017-01-09 16:25:28 +01:00
Patrick Niklaus
6794f52cb2
Merge pull request #3526 from Project-OSRM/llvm-391
...
Upgrades LLVM 3.8.1 -> LLVM 3.9.1 on Travis
2017-01-09 16:23:10 +01:00
Daniel J. Hofmann
06e6b9ea6f
Squashed 'third_party/mason/' changes from cf3561b..6b4c359
...
git-subtree-dir: third_party/mason
git-subtree-split: 6b4c359bca48b576c4a4732b4117130eaafbf6ad
2017-01-09 14:26:44 +05:30
Daniel J. Hofmann
93d89ad686
Updates vendored mason to v0.4 for LLVM 3.9.1
2017-01-09 14:26:44 +05:30
Daniel J. Hofmann
7c8176b077
Updates mason to v0.4 in dependency script
2017-01-09 14:26:26 +05:30
Daniel J. Hofmann
7ef95e9918
Upgrades LLVM 3.8.1 -> LLVM 3.9.1 on Travis
...
LLVM 3.9.1 is now packaged in mason: https://github.com/mapbox/mason/issues/308
Upgrade our Clang compiler to the latest stable release.
Keeps clang-format at 3.8.1 for consistency.
2017-01-09 14:25:34 +05:30
Huyen Chau Nguyen
f313cb9913
Refactor fork handling in guidance ( #3264 )
...
refactor fork handler
2017-01-07 14:13:32 +01:00
Moritz Kobitzsch
15c8fd326f
Remove assertions that could be triggered by bad data. ( #3469 )
...
When two consecutive nodes have identical coordinates, there is no valid
bearing. For now, make equal nodes have bearing 0.
Full fix still needs to be done via https://github.com/Project-OSRM/osrm-backend/issues/3470 .
2017-01-06 17:10:02 -08:00
Daniel Patterson
f7e8581a1b
Replace fingerprint with semver-based scheme. ( #3467 )
2017-01-06 13:45:08 -08:00
Daniel J. Hofmann
c01ea2ea3e
Disables link-time optimization unless -DENABLE_LTO=ON is passed.
...
This disables the `-flto` LTO flag by default since we're seeing
segfaults in compiler lto plugins, binutils and linker errors again and
again for various clang / gcc / binutils combinations.
Pass `-DNEBALE_LTO` to `cmake` in order to re-enable LTO.
LTO situation in short:
- LTO does not work at all for gcc<4.9
- With gcc>=4.9 the "slim" LTO format is getting used dumping IR
- Older binutils need LTO plugins which know how to read this IR
- Recent binutils handle this format all by themselves
- LLVM is more or less the same with some Clang versions segfaulting
If you need the performance benefit of LTO, make sure your compiler and
binutils are up to date and see for yourself if LTO builds work for you.
References:
- https://gcc.gnu.org/wiki/LinkTimeOptimizationFAQ
- https://github.com/Project-OSRM/osrm-backend/pull/3481#issuecomment-270618997
- https://github.com/Project-OSRM/osrm-backend/issues/3501
- https://github.com/Project-OSRM/osrm-backend/issues/3441
(and a ton of other LTO tickets if you search for them)
2017-01-06 16:49:49 +01:00
Daniel J. Hofmann
1153b78c06
Fixes various compiler diagnostics
...
Found with LLVM 3.9.1 and then fixed the most severe categories.
2017-01-06 16:47:52 +01:00
Daniel J. Hofmann
b5d5f309a3
Consider number of lanes to cross, resolves #3025 .
...
Lane Anticipation currently triggers on quick steps with lanes. This
changeset makes the "quick" part more dynamic by taking lanes left and
right of the turn into account. The reasoning for this is as follows.
The user can drive on the leftmost or rightmost lane and has to cross
all lanes left or right of the turn, respecitvely.
We scale our threshold appropriately, which now means the threshold
describes the duration the user needs for crossing _a single lane_.
Note: this is a heuristic and assumes the worst case. Which in my
opinion is fine to do since triggering Lane Anticipation in complex
scenarios is desirable.
2017-01-06 12:44:40 +01:00
Daniel J. Hofmann
5100f2cc7b
Guards against no lanes for lanes left and right of turn, resolves #3518
2017-01-06 12:44:02 +01:00
Moritz Kobitzsch
f6fef5c166
refactor graph contraction: flush moved into dedicated function
2017-01-05 16:28:38 +01:00