summaryrefslogtreecommitdiff
path: root/thread_sync.c
AgeCommit message (Expand)Author
2023-03-07Correctly clean up `keeping_mutexes` before resuming any other threads. (#7460)Samuel Williams
2023-02-08Replace `PACKED_STRUCT` and `PACKED_STRUCT_UNALIGNED`Nobuyoshi Nakada
2023-01-21Add `queue_list` and `szqueue_list` macrosNobuyoshi Nakada
2023-01-19Fix compilation warnings in thread_sync.cPeter Zhu
2023-01-18Don't redefine RB_OBJ_WRITEPeter Zhu
2022-11-09mutex: Raise a ThreadError when detecting a fiber deadlock (#6680)Jean byroot Boussier
2022-10-20Avoid missed wakeup with fiber scheduler and Fiber.blocking. (#6588)Samuel Williams
2022-10-18Adjust indents [ci skip]Nobuyoshi Nakada
2022-10-17thread_sync.c: Clarify and document the behavior of timeout == 0Jean Boussier
2022-08-18Implement SizedQueue#push(timeout: sec)Jean Boussier
2022-08-06Adjust styles [ci skip]Nobuyoshi Nakada
2022-08-04thread_sync.c: pass proper argument to queue_sleep in rb_szqueue_pushJean Boussier
2022-08-02Implement Queue#pop(timeout: sec)Jean Boussier
2022-07-26Rename rb_ary_tmp_new to rb_ary_hidden_newPeter Zhu
2022-07-21Expand tabs [ci skip]Takashi Kokubun
2022-03-30Prefix ccan headers (#4568)Nobuyoshi Nakada
2021-12-15[DOC] Improve Thread::Queue.new docs [ci skip]Victor Shepelev
2021-11-28Suppress address-of-packed-member warning by gccNobuyoshi Nakada
2021-09-17Add WB_PROTECTED to mutexesJohn Hawthorn
2021-08-02Using RBOOL macroS.H
2021-07-25Distinguish signal and timeout [Bug #16608]Nobuyoshi Nakada
2021-07-01Replace copy coroutine with pthread implementation.Samuel Williams
2021-06-29Prefer qualified names under ThreadNobuyoshi Nakada
2021-06-28Refined define_thread_classNobuyoshi Nakada
2021-06-17Adjust styles [ci skip]Nobuyoshi Nakada
2021-06-15Convert initial contents before allocating queue bufferNobuyoshi Nakada
2021-03-14Properly convert time_t [Bug #17645]Nobuyoshi Nakada
2021-03-14--dont-cuddle-else [ci skip]Nobuyoshi Nakada
2021-02-12Thread::Queue.new should accept an Enumerable [Feature #17327]Nobuyoshi Nakada
2021-02-11The Queue constructor should take an initial set of objectsChris Seaton
2021-02-09Expose scheduler as public interface & bug fixes. (#3945)Samuel Williams
2021-01-14[DOC] Fixed indent [ci skip]Nobuyoshi Nakada
2020-12-05Proposed method for dealing with stack locals which have non-local lifetime.Samuel Williams
2020-11-12strip trailing spaces and adjusted indents [ci skip]Nobuyoshi Nakada
2020-11-08Tidy up book keeping for `thread->keeping_mutexes`.Samuel Williams
2020-11-08Don't try to resume blocked fiber on dead thread.Samuel Williams
2020-11-07Rename to `Fiber#set_scheduler`.Samuel Williams
2020-09-21Make `Thread#join` non-blocking.Samuel Williams
2020-09-20Remove from waiter in Mutex#lock with ensure when calling rb_scheduler_block()Benoit Daloze
2020-09-18Fix copy/paste error from 5bb5e706f1d310a467075630145d2cc277045765Benoit Daloze
2020-09-18Only interrupt when there is no scheduler in sync_wakeup()Benoit Daloze
2020-09-17Cleanup commented codeBenoit Daloze
2020-09-17Add missing goto found;Benoit Daloze
2020-09-17Fix Mutex#unlock with a scheduler and thread contentionBenoit Daloze
2020-09-17Call scheduler.block instead of scheduler.kernel_sleep for blocking Queue/Siz...Benoit Daloze
2020-09-17Rename scheduler.{mutex_lock,mutex_unlock} to {block,unblock}Benoit Daloze
2020-09-14Add support for Queue & SizedQueue.Samuel Williams
2020-09-14Add support for ConditionVariable.Samuel Williams
2020-09-14Improve handling of urgent notification pipe.Samuel Williams
2020-09-14Make Mutex per-Fiber instead of per-ThreadBenoit Daloze