Files
ladybird/Kernel
Andreas Kling b2e502e533 Kernel: Add Thread::block_until(Condition).
Replace the class-based snooze alarm mechanism with a per-thread callback.
This makes it easy to block the current thread on an arbitrary condition:

    void SomeDevice::wait_for_irq() {
        m_interrupted = false;
        current->block_until([this] { return m_interrupted; });
    }
    void SomeDevice::handle_irq() {
        m_interrupted = true;
    }

Use this in the SB16 driver, and in NetworkTask :^)
2019-07-14 14:54:54 +02:00
..
2019-05-28 17:31:20 +02:00
2019-07-13 08:00:24 +02:00
2019-07-13 08:00:24 +02:00
2019-07-13 08:00:24 +02:00
2019-05-28 17:31:20 +02:00
2019-07-13 08:00:24 +02:00