Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: thread_pthread.c
- ===================================================================
- --- thread_pthread.c (revision 745)
- +++ thread_pthread.c (working copy)
- @@ -169,6 +169,7 @@
- {
- #if WITH_OBJC
- rb_objc_gc_register_thread();
- + rb_objc_release((void *)th_ptr);
- #endif
- #if USE_THREAD_CACHE
- thread_start:
- @@ -327,6 +328,7 @@
- CHECK_ERR(pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED));
- CHECK_ERR(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED));
- + rb_objc_retain((void *)th);
- err = pthread_create(&th->thread_id, &attr, thread_start_func_1, th);
- thread_debug("create: %p (%d)", th, err);
- CHECK_ERR(pthread_attr_destroy(&attr));
Add Comment
Please, Sign In to add comment