thread-saftey memory pools

2017-01-15 Thread Sergey Safarov
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

Added switch_thread_getname and switch_thread_setname

2017-01-15 Thread Sergey Safarov
Hello For process monitoring and troubleshooting i prefer have individual name for each thread. I submitted pull request with added unix implementation of apr_thread_setname and apr_thread_getname. Could you please review this pull request and add for windows and other operation systems