summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-05-04 13:27:36 -0400
committerNick Mathewson <nickm@torproject.org>2010-05-04 13:27:36 -0400
commitc16e68448c546c99d3c0d1a1447214a55e137b35 (patch)
treeda03991085efaa26fdb826e94560e53d7a3e124f /include
parent99e50e90bd2a03638f9bef11dae12d9951b0c793 (diff)
downloadlibevent-c16e68448c546c99d3c0d1a1447214a55e137b35.tar.gz
Rename current_base symbol to event_global_current_base_
The "current_base" symbol was never actually declared in an exported header; it's hideously deprecated, and it was the one remaining exported symbol (fwict) that was prefixed with neither ev nor bufferevent nor _ev nor _bufferevent. codesearch.google.com turns up no actual attempts to use our current_base from outside libevent.
Diffstat (limited to 'include')
-rw-r--r--include/event2/event.h6
-rw-r--r--include/event2/event_compat.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/include/event2/event.h b/include/event2/event.h
index 116010e1..ba9ce3d8 100644
--- a/include/event2/event.h
+++ b/include/event2/event.h
@@ -85,11 +85,9 @@ void event_debug_unassign(struct event *);
/**
Initialize the event API.
- Use event_base_new() to initialize a new event base, but does not set
- the current_base global. If using only event_base_new(), each event
- added must have an event base set with event_base_set()
+ Use event_base_new() to initialize a new event base.
- @see event_base_set(), event_base_free(), event_init(),
+ @see event_base_set(), event_base_free(),
event_base_new_with_config()
*/
struct event_base *event_base_new(void);
diff --git a/include/event2/event_compat.h b/include/event2/event_compat.h
index 03bf2eba..f59850a0 100644
--- a/include/event2/event_compat.h
+++ b/include/event2/event_compat.h
@@ -53,8 +53,8 @@ extern "C" {
Initialize the event API.
The event API needs to be initialized with event_init() before it can be
- used. Sets the current_base global representing the default base for
- events that have no base associated with them.
+ used. Sets the global current base that gets used for events that have no
+ base associated with them.
@deprecated This function is deprecated because it replaces the "current"
event_base, and is totally unsafe for multithreaded use. The replacement