Skip to content

Remove poll() timeouts #9

@smurfix

Description

@smurfix

Busy-waiting in a 100ms delay loop for a parent to MAYBE signal that your thread should exit is ugly and doesn't work at all on platforms which have to use multiprocessing instead of native threads.

The best way to do this is to also wait on a pipe. Let the parent write a byte to the pipe if it wants its children to exit; let the child thread exit if the pipe's read side is ready.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions