sync: use Event for waitgroup on windows

This commit is contained in:
joe-conigliaro 2020-06-23 03:23:42 +10:00
parent a4b159a80f
commit d19a33c420
No known key found for this signature in database
GPG key ID: C12F7136C08206F1
5 changed files with 71 additions and 14 deletions

View file

@ -1,9 +1,11 @@
// Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.
module sync
// TODO: The suggestion of using CriticalSection instead of mutex
// was discussed. Needs consideration.
// Mutex HANDLE
type MHANDLE voidptr