« Previous | Next » 

Revision 57607cbd


Added by Georgios D. Tsoukalas almost 12 years ago

Enhance pooling API, implementation, and tests

- Verify objects (new and old) with a hook _pool_verify.
Discard objects from the pool that fail verification.
A newly created object failing verification is fatal.

- Remove all hooks from the pool set access critical section.
This makes pooling overhead minimal, and independent from hooks.
However, this requires the hooks to be thread safe
(but this is not restricting, since
if you are single-threaded, almost everything is safe,
and if you are multi-threaded, then you must already be thread safe)

- Fix typos, and (some) non-deterministic assertions in tests

- Make test pool hooks thread safe and add a thread safety test.

- Refactor http connection pool to use new pools.


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences