Is vcpkg is data-race free? #42056
-
Suppose I have a vcpkg installed on some machine and 2 jobs get started simultaneously: clang & gcc builds of some project utilizing vcpkg. If the packages can't be acquired from the cache, they have to be built and cached. So what happens when both jobs tries to download/build/cache the packages? Does vcpkg have some internal synchronization which handles this situation? |
Beta Was this translation helpful? Give feedback.
Answered by
autoantwort
Nov 8, 2024
Replies: 1 comment 6 replies
-
There is internal synchronization (a lock file). If you use |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
ixSci
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is internal synchronization (a lock file). If you use
--x-wait-for-lock
the instances wait until the other instances are done.