« Previous | Next » 

Revision 57607cbd

ID57607cbdc56e92fdb8a0fba1d4e635a9aece9b8d

Added by Georgios D. Tsoukalas over 11 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.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences