diff options
author | Determinant <ted.sybil@gmail.com> | 2019-06-12 00:28:56 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2019-06-12 00:28:56 -0400 |
commit | 4c7456063b467e7a8649434195ee446633d7e32a (patch) | |
tree | 1bf68b5d7c0e093cf8fea1c171db8fa9154bdade /event.go | |
parent | 929a6d9370a0b92ef2b72eab4ecfe7ca7910be04 (diff) |
add README; clean up the examples
Diffstat (limited to 'event.go')
-rw-r--r-- | event.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,8 +44,8 @@ type SigEventCallback = C.sigev_callback_t var SIGTERM = C.SIGTERM var SIGINT = C.SIGINT -func NewSigEvent(ec EventContext, cb SigEventCallback) SigEvent { - return C.sigev_new(ec, cb) +func NewSigEvent(ec EventContext, cb SigEventCallback, userdata rawptr_t) SigEvent { + return C.sigev_new(ec, cb, userdata) } func (self SigEvent) Add(sig int) { C.sigev_add(self, C.int(sig)) } |