apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Safarov <s.safa...@gmail.com>
Subject thread-saftey memory pools
Date Sun, 15 Jan 2017 20:16:13 GMT
Could you help me understand why not used mutex to implement thread safety
functions:

   1. apr_palloc
   2. apr_pool_clear
   3. apr_pool_destroy
   4. apr_pvsprintf


In this functions is used:

   1. pool_concurrency_set_used
   2. pool_concurrency_set_idle
   3. pool_concurrency_set_destroyed

And if concurrency access is detected then called "pool_concurrency_abort"
and program terminated.

https://github.com/apache/apr/blob/trunk/memory/unix/apr_pools.c

Mime
View raw message