| ... | @@ -215,10 +215,7 @@ pub fn windowsFindNextFile(handle: windows.HANDLE, find_file_data: *windows.WIN3 | ... | @@ -215,10 +215,7 @@ pub fn windowsFindNextFile(handle: windows.HANDLE, find_file_data: *windows.WIN3 |
| 215 | return true; | 215 | return true; |
| 216 | } | 216 | } |
| 217 | | 217 | |
| 218 | | 218 | pub const WindowsCreateIoCompletionPortError = error{Unexpected}; |
| 219 | pub const WindowsCreateIoCompletionPortError = error { | | |
| 220 | Unexpected, | | |
| 221 | }; | | |
| 222 | | 219 | |
| 223 | pub fn windowsCreateIoCompletionPort(file_handle: windows.HANDLE, existing_completion_port: ?windows.HANDLE, completion_key: usize, concurrent_thread_count: windows.DWORD) !windows.HANDLE { | 220 | pub fn windowsCreateIoCompletionPort(file_handle: windows.HANDLE, existing_completion_port: ?windows.HANDLE, completion_key: usize, concurrent_thread_count: windows.DWORD) !windows.HANDLE { |
| 224 | const handle = windows.CreateIoCompletionPort(file_handle, existing_completion_port, completion_key, concurrent_thread_count) orelse { | 221 | const handle = windows.CreateIoCompletionPort(file_handle, existing_completion_port, completion_key, concurrent_thread_count) orelse { |
| ... | @@ -230,9 +227,7 @@ pub fn windowsCreateIoCompletionPort(file_handle: windows.HANDLE, existing_compl | ... | @@ -230,9 +227,7 @@ pub fn windowsCreateIoCompletionPort(file_handle: windows.HANDLE, existing_compl |
| 230 | return handle; | 227 | return handle; |
| 231 | } | 228 | } |
| 232 | | 229 | |
| 233 | pub const WindowsPostQueuedCompletionStatusError = error { | 230 | pub const WindowsPostQueuedCompletionStatusError = error{Unexpected}; |
| 234 | Unexpected, | | |
| 235 | }; | | |
| 236 | | 231 | |
| 237 | pub fn windowsPostQueuedCompletionStatus(completion_port: windows.HANDLE, bytes_transferred_count: windows.DWORD, completion_key: usize, lpOverlapped: ?*windows.OVERLAPPED) WindowsPostQueuedCompletionStatusError!void { | 232 | pub fn windowsPostQueuedCompletionStatus(completion_port: windows.HANDLE, bytes_transferred_count: windows.DWORD, completion_key: usize, lpOverlapped: ?*windows.OVERLAPPED) WindowsPostQueuedCompletionStatusError!void { |
| 238 | if (windows.PostQueuedCompletionStatus(completion_port, bytes_transferred_count, completion_key, lpOverlapped) == 0) { | 233 | if (windows.PostQueuedCompletionStatus(completion_port, bytes_transferred_count, completion_key, lpOverlapped) == 0) { |
| ... | @@ -243,7 +238,7 @@ pub fn windowsPostQueuedCompletionStatus(completion_port: windows.HANDLE, bytes_ | ... | @@ -243,7 +238,7 @@ pub fn windowsPostQueuedCompletionStatus(completion_port: windows.HANDLE, bytes_ |
| 243 | } | 238 | } |
| 244 | } | 239 | } |
| 245 | | 240 | |
| 246 | pub const WindowsWaitResult = error { | 241 | pub const WindowsWaitResult = error{ |
| 247 | Normal, | 242 | Normal, |
| 248 | Aborted, | 243 | Aborted, |
| 249 | }; | 244 | }; |