Roman Puls
bd6f1babf7
Fix up evthread compilation on windows
2009-12-02 01:15:15 -05:00
Nick Mathewson
347952ffe0
Revise the locking API: deprecate the old locking callbacks and add trylock.
...
Previously, there was no good way to request different kinds of lock
(say, read/write vs writeonly or recursive vs nonrecursive), or for a
lock function to signal failure (which would be important for a
trylock mode).
This patch revises the lock API to be a bit more useful. The older
lock calls are still supported for now.
We also add a debugging mode to catch common errors in using the
locking APIs.
2009-11-27 17:36:24 -05:00
Nick Mathewson
1fb2e818a6
Use a uniform strategy when a function is not working: do not expose
...
it.
Rather than failing at runtime, it is better to fail at compile or
link time.
svn:r1363
2009-07-17 21:47:45 +00:00
Nick Mathewson
ed038295cd
Define a macro to indicate that we have defined one of the optional evthread_use macros
...
svn:r1355
2009-07-17 20:22:48 +00:00
Nick Mathewson
0b4ab12251
Spell-check the the headers
...
svn:r1320
2009-05-28 15:47:15 +00:00
Nick Mathewson
ec35eb5520
Make threading functions global, like the mm_ functions. Use the libevent_pthread.la library in regress_pthread.
...
svn:r1121
2009-02-12 22:19:54 +00:00
Nick Mathewson
b85b710cf5
Update copyright statements to reflect the facts that:
...
a) this is 2009
b) niels and nick have been comaintainers for a while
c) saying "all rights reserved" when you then go on to explicitly
disclaim some rights is sheer cargo-cultism.
svn:r1065
2009-01-27 22:34:36 +00:00
Nick Mathewson
9993137cbb
Remove all trailing whitespace in all the source files.
...
svn:r1063
2009-01-27 21:10:31 +00:00
Nick Mathewson
309fc7c4ad
New functions to provide sane threading callbacks with pthreads and win32 threading implementations.
...
svn:r1031
2009-01-21 07:51:25 +00:00
Nick Mathewson
ec4cfa33c9
Make event_break threadsafe; make notify-thread mechanism a little more generic; let it use pipes where they work.
...
svn:r1019
2009-01-19 01:34:14 +00:00
Niels Provos
cb50f615d4
rename lock create callback functions; as suggested by nick
...
svn:r691
2008-03-11 05:26:30 +00:00
Niels Provos
c182baca10
switch thread support so that locks get allocated as they are needed.
...
svn:r690
2008-03-10 03:17:20 +00:00
Nick Mathewson
6a92ec0b0f
r18547@catbus: nickm | 2008-03-04 14:46:42 -0500
...
Fix compilation with --enable-gcc-warnings
svn:r689
2008-03-04 19:47:01 +00:00
Niels Provos
0c49e456f1
document thread functions
...
svn:r688
2008-03-04 05:42:20 +00:00
Niels Provos
968fd5c06f
forgot this header file
...
svn:r685
2008-03-02 21:39:49 +00:00