kassane / asio-zig

asio (standalone) event-loop to C API - Experimental (uses zig 0.12.0)
MIT License
4 stars 3 forks source link

Case Study: FFI Thread Safety #6

Open kassane opened 1 year ago

kassane commented 1 year ago

This case to be studied does not affect or influence the progress of the Zig project and its features. Everything that is or will be tested has an experimental purpose.

References

Related

asio - FFI

Others

kassane commented 1 year ago

There are some threadpool solutions written in Zig, one of which is officially supported in the standard library, but requires memory allocation and another heapless proposal.

Allocator - std

Note: When Observing the std version git history, it can be seen that it is based on the refactored heapless version.

Heapless

kassane commented 1 year ago

Based on the reference below.

Something similar occurs in the current CI test. The zig test prints Hello task using posted strand however it is not displayed along with threadpool.