summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev.36
-rw-r--r--ev.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/ev.3 b/ev.3
index 2e3365e..2721ca3 100644
--- a/ev.3
+++ b/ev.3
@@ -124,7 +124,7 @@
.\" ========================================================================
.\"
.IX Title "LIBEV 3"
-.TH LIBEV 3 "2012-02-04" "libev-4.11" "libev - high performance full featured event loop"
+.TH LIBEV 3 "2012-03-23" "libev-4.11" "libev - high performance full featured event loop"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
@@ -4058,6 +4058,10 @@ to add as long as they only need one additional pointer for context. If
you need support for other types of functors please contact the author
(preferably after implementing it).
.PP
+For all this to work, your \*(C+ compiler either has to use the same calling
+conventions as your C compiler (for static member functions), or you have
+to embed libev and compile libev itself as \*(C+.
+.PP
Here is a list of things available in the \f(CW\*(C`ev\*(C'\fR namespace:
.ie n .IP """ev::READ"", ""ev::WRITE"" etc." 4
.el .IP "\f(CWev::READ\fR, \f(CWev::WRITE\fR etc." 4
diff --git a/ev.c b/ev.c
index 7ae3138..98efcf9 100644
--- a/ev.c
+++ b/ev.c
@@ -604,7 +604,7 @@ struct signalfd_siginfo
#define ECB_MEMORY_FENCE_ACQUIRE __machine_r_barrier ()
#define ECB_MEMORY_FENCE_RELEASE __machine_w_barrier ()
#elif __xlC__
- #define ECB_MEMORY_FENCE __lwsync ()
+ #define ECB_MEMORY_FENCE __sync ()
#endif
#endif