spacejam/sled

implement actual parallel IO trait for windows

開放

#243 建立於 2018年2月11日

 (3 則留言) (0 個反應) (0 位負責人)Rust (315 個分叉)batch import
help wantednewbie

倉庫指標

星標
 (6,419 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

We need to support parallel writes for building on windows.

I believe the way to go about this is through https://retep998.github.io/doc/kernel32/fn.WriteFile.html and passing in an OVERLAPPED struct, as per SO.

Here's the current, global-lock driven approach on windows, which may not even compile: https://github.com/spacejam/sled/pull/242/commits/2906673fe6755f18bebf5d90a63eca6ff75a2036#diff-f23996d5649981fd238dd760793391c1R78

貢獻者指南