Skip to content

Tasks spawned with tspawnat can migrate on 1.7 #32

@Octogonapus

Description

@Octogonapus

Using ThreadPools v2.1.0 and Julia v1.7.1, tasks spawned with @tspawnat can migrate between threads. Tasks spawned this way always spawn on the correct thread as given to the macro, but can migrate to another thread during execution.

There is some existing work to add support for sticky tasks in 1.7+ in this PR JuliaLang/julia#42302 but it will not land for some time.

Are you interested in supporting sticky tasks in 1.7+ in this package? From my testing, it would be a simple change. Just allow the user to set sticky to true here: https://github.com/tro3/ThreadPools.jl/blob/master/src/macros.jl#L270

cc @IanButterworth

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