Fixed inverted current thread condition [Bug #16808]
This commit is contained in:
parent
a52a459b16
commit
0f5ae7a200
@ -1622,7 +1622,7 @@ native_set_another_thread_name(rb_nativethread_id_t thread_id, VALUE name)
|
|||||||
char buf[thread_name_max];
|
char buf[thread_name_max];
|
||||||
const char *s = "";
|
const char *s = "";
|
||||||
# if !defined SET_ANOTHER_THREAD_NAME
|
# if !defined SET_ANOTHER_THREAD_NAME
|
||||||
if (pthread_equal(pthread_self(), thread_id)) return;
|
if (!pthread_equal(pthread_self(), thread_id)) return;
|
||||||
# endif
|
# endif
|
||||||
if (!NIL_P(name)) {
|
if (!NIL_P(name)) {
|
||||||
long n;
|
long n;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user