#60 Add a function to get number of priorities of event_base

closed
nobody
None
5
2011-10-11
2011-10-11
No

In some cases we need to get event_base's number of priorities that was set earlier by event_base_priority_init().

I've added a function for that: event_base_get_npriorities(). Please see the patch attached.

Discussion

  • Nick Mathewson
    Nick Mathewson
    2011-10-11

    Looks good. I'm merging it to master, and making it (and event_base_priority_init()) thread-safe.

     
  • Nick Mathewson
    Nick Mathewson
    2011-10-11

    • status: open --> closed