2020-08-08 00:17:35 +02:00
|
|
|
// Copyright 2020 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2021-07-30 23:28:58 +02:00
|
|
|
//go:build !goexperiment.staticlockranking
|
2020-07-28 07:27:54 +02:00
|
|
|
|
|
|
|
package sync
|
|
|
|
|
|
|
|
import "unsafe"
|
|
|
|
|
|
|
|
// Approximation of notifyList in runtime/sema.go. Size and alignment must
|
|
|
|
// agree.
|
|
|
|
type notifyList struct {
|
|
|
|
wait uint32
|
|
|
|
notify uint32
|
|
|
|
lock uintptr // key field of the mutex
|
|
|
|
head unsafe.Pointer
|
|
|
|
tail unsafe.Pointer
|
|
|
|
}
|