Edit

kc3-lang/libevent/include

Branch :

  • Show log

    Commit

  • Author : Nick Mathewson
    Date : 2009-11-27 15:20:43
    Hash : 347952ff
    Message : 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.