-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
Passing a Rust "extern fn" to a foreign API that creates its own threads doesn't work right now, the error is as below.
Assertion failed: (task && "Couldn't get the task from TLS!"), function get_task_tls, file /Users/Jens/Code/Git/rust/src/rt/rust_sched_loop.h, line 168.
There should be some annotation that you could add to your "extern fn" that would cause the compiler to emit only non-runtime dependent code and/or warn if you use features that depend on the runtime.
Metadata
Metadata
Assignees
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.