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);
30 c := make(chan os.Signal, 1)
31 signal.Notify(c, syscall.SIGIO)
34 atomic.AddInt32(&sigioCount, 1)
41 func GoRaiseSIGIO(p *C.pthread_t) {
45 // Return the number of SIGIO signals seen.
47 func SIGIOCount() C.int {
48 return C.int(atomic.LoadInt32(&sigioCount))