summaryrefslogtreecommitdiff
path: root/event.3
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2004-12-01 20:10:16 +0000
committerNiels Provos <provos@gmail.com>2004-12-01 20:10:16 +0000
commitcacd83983f20af59b9a137886131a63f834a06e9 (patch)
tree55f741bfa5c48240a470ce868f7891abd613b832 /event.3
parent256460459e6e9a8358337f64b8080c6665f34c1a (diff)
downloadlibevent-cacd83983f20af59b9a137886131a63f834a06e9.tar.gz
documentation on thread safe events
svn:r126
Diffstat (limited to 'event.3')
-rw-r--r--event.313
1 files changed, 12 insertions, 1 deletions
diff --git a/event.3 b/event.3
index c263a494..bfff5928 100644
--- a/event.3
+++ b/event.3
@@ -73,7 +73,7 @@
.Sh SYNOPSIS
.Fd #include <sys/time.h>
.Fd #include <event.h>
-.Ft void
+.Ft "struct event_base *"
.Fn "event_init"
.Ft int
.Fn "event_dispatch"
@@ -399,6 +399,17 @@ By default,
assigns the middle priority to all events unless their priority
is explicitly set.
.Pp
+.Sh THREAD SAFE EVENTS
+.Nm Libevent
+has experimental support for thread-safe events.
+When initializing the library via
+.Fn event_init ,
+an event base is returned.
+This event base can be used in conjunction with calls to
+.Fn event_base_set
+and
+.Fn event_base_dispatch .
+.Pp
.Sh BUFFERED EVENTS
.Nm libevent
provides an abstraction on top of the regular event callbacks.