温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/ffi/FFIFunction/threadsafe
点击访问原文链接

property threadsafe | bun:ffi module | Bun

property threadsafe | bun:ffi module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    Can C/FFI code call this function from a separate thread? Only supported with JSCallback. This does not make the function run in a separate thread. It is still up to the application/library to run their code in a separate thread. By default, JSCallback calls are not thread-safe. Turning this on incurs a small performance penalty for every function call. That small performance penalty needs to be less than the performance gain from running the function in a separate thread.