MCPcopy Create free account
hub / github.com/git/git / get_thread_data

Function get_thread_data

builtin/index-pack.c:411–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411static inline struct thread_local_data *get_thread_data(void)
412{
413 if (HAVE_THREADS) {
414 if (threads_active)
415 return pthread_getspecific(key);
416 assert(!threads_active &&
417 "This should only be reached when all threads are gone");
418 }
419 return &nothread_data;
420}
421
422static void set_thread_data(struct thread_local_data *data)
423{

Callers 1

unpack_dataFunction · 0.85

Calls 1

pthread_getspecificFunction · 0.85

Tested by

no test coverage detected