]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: use PTHREAD_{MUTEX,COND}_INITIALIZER
authorIan Lance Taylor <iant@golang.org>
Tue, 28 Apr 2015 20:58:32 +0000 (13:58 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 28 Apr 2015 22:27:26 +0000 (22:27 +0000)
commit0c62c93a097fbe72161dd354ea6f4026d8e33580
treef41eeed37dc413830417396f56cad3d3c5970383
parent339cf9807debe2b20e8701ff3821079a8e925700
runtime/cgo: use PTHREAD_{MUTEX,COND}_INITIALIZER

Technically you must initialize static pthread_mutex_t and
pthread_cond_t variables with the appropriate INITIALIZER macro.  In
practice the default initializers are zero anyhow, but it's still good
code hygiene.

Change-Id: I517304b16c2c7943b3880855c1b47a9a506b4bdf
Reviewed-on: https://go-review.googlesource.com/9433
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/runtime/cgo/gcc_libinit.c