We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16a830f + 993d38a commit a064af6Copy full SHA for a064af6
builtin/index-pack.c
@@ -1255,13 +1255,15 @@ static void resolve_deltas(void)
1255
base_cache_limit = delta_base_cache_limit * nr_threads;
1256
if (nr_threads > 1 || getenv("GIT_FORCE_THREADS")) {
1257
init_thread();
1258
+ work_lock();
1259
for (i = 0; i < nr_threads; i++) {
1260
int ret = pthread_create(&thread_data[i].thread, NULL,
1261
threaded_second_pass, thread_data + i);
1262
if (ret)
1263
die(_("unable to create thread: %s"),
1264
strerror(ret));
1265
}
1266
+ work_unlock();
1267
for (i = 0; i < nr_threads; i++)
1268
pthread_join(thread_data[i].thread, NULL);
1269
cleanup_thread();
0 commit comments