1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
12 static void CRaiseSIGIO(pthread_t* p) {
13 pthread_kill(*p, SIGIO);
31 c := make(chan os.Signal, 1)
32 signal.Notify(c, syscall.SIGIO)
35 atomic.AddInt32(&sigioCount, 1)
43 func GoRaiseSIGIO(p *C.pthread_t) {
47 // Return the number of SIGIO signals seen.
50 func SIGIOCount() C.int {
51 return C.int(atomic.LoadInt32(&sigioCount))