Lines 217-237
Link Here
|
217 |
{ |
217 |
{ |
218 |
int ret = 0; |
218 |
int ret = 0; |
219 |
|
219 |
|
220 |
#if HAVE_PRCTL |
|
|
221 |
ret = AVERROR(prctl(PR_SET_NAME, name)); |
222 |
#elif HAVE_PTHREAD_SETNAME_NP |
223 |
#if defined(__APPLE__) |
224 |
ret = AVERROR(pthread_setname_np(name)); |
225 |
#elif defined(__NetBSD__) |
226 |
ret = AVERROR(pthread_setname_np(pthread_self(), "%s", name)); |
227 |
#else |
228 |
ret = AVERROR(pthread_setname_np(pthread_self(), name)); |
229 |
#endif |
230 |
#elif HAVE_PTHREAD_SET_NAME_NP |
231 |
pthread_set_name_np(pthread_self(), name); |
220 |
pthread_set_name_np(pthread_self(), name); |
232 |
#else |
|
|
233 |
ret = AVERROR(ENOSYS); |
234 |
#endif |
235 |
|
221 |
|
236 |
return ret; |
222 |
return ret; |
237 |
} |
223 |
} |