| line |
true |
false |
branch |
|
22
|
1305 |
87 |
for (i = 0; i < cnt; i++) { |
|
23
|
0 |
1305 |
if ((ret = init_fns[i]()) != 0) |
|
37
|
0 |
0 |
for (pos = git_atomic32_get(&shutdown_callback_count); |
|
42
|
0 |
0 |
if (cb != NULL) |
|
51
|
696 |
0 |
if (count > (int)ARRAY_SIZE(shutdown_callback) || count == 0) { |
|
|
0 |
696 |
if (count > (int)ARRAY_SIZE(shutdown_callback) || count == 0) { |
|
94
|
154 |
0 |
return pthread_mutex_lock(&init_mutex) == 0 ? 0 : -1; |
|
99
|
154 |
0 |
return pthread_mutex_unlock(&init_mutex) == 0 ? 0 : -1; |
|
115
|
0 |
87 |
if (init_lock() < 0) |
|
119
|
87 |
0 |
if ((ret = git_atomic32_inc(&init_count)) == 1) { |
|
120
|
0 |
87 |
if (init_common(init_fns, cnt) < 0) |
|
124
|
0 |
87 |
if (init_unlock() < 0) |
|
134
|
0 |
67 |
if (init_lock() < 0) |
|
139
|
0 |
67 |
if (init_unlock() < 0) |
|
150
|
0 |
0 |
if (init_lock() < 0) |
|
154
|
0 |
0 |
if ((ret = git_atomic32_dec(&init_count)) == 0) |
|
158
|
0 |
0 |
if (init_unlock() < 0) |