]> Cypherpunks repositories - gostls13.git/commit
runtime: check for errors returned by windows sema calls
authorJoshua Boelter <joshua.boelter@intel.com>
Wed, 10 Aug 2016 05:37:26 +0000 (22:37 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 12 Oct 2016 13:39:43 +0000 (13:39 +0000)
commit1a3b739b26e2742fd2febc7c0f87aa8115f390ab
treedafab64d7c8b0130da3d8849dbc4895b0e7ac937
parent9d36ab222d838f0e493653e2f31d77adb15ab9b5
runtime: check for errors returned by windows sema calls

Add checks for failure of CreateEvent, SetEvent or
WaitForSingleObject. Any failures are considered fatal and
will throw() after printing an informative message.

Updates #16646

Change-Id: I3bacf9001d2abfa8667cc3aff163ff2de1c99915
Reviewed-on: https://go-review.googlesource.com/26655
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/os_windows.go