mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 13:07:06 +00:00
crash prevention
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1281 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
24627a7a4b
commit
5ab733c606
5 files changed
+72
-2
No files matched your search
@@ -41,6 +41,9 @@
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#ifdef __FORMATBUG
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <apr.h>
|
||||
@@ -48,6 +51,7 @@ extern "C" {
|
||||
#include <apr_errno.h>
|
||||
#include <apr_general.h>
|
||||
#include <apr_thread_proc.h>
|
||||
#include <apr_portable.h>
|
||||
#include <apr_thread_mutex.h>
|
||||
#include <apr_thread_cond.h>
|
||||
#include <apr_thread_rwlock.h>
|
||||
@@ -257,6 +261,12 @@ typedef apr_thread_cond_t switch_thread_cond_t;
|
||||
DoxyDefine(apr_status_t switch_thread_cond_create(switch_thread_cond_t **cond, switch_pool_t *pool);)
|
||||
#define switch_thread_cond_create apr_thread_cond_create
|
||||
|
||||
typedef apr_os_thread_t switch_thread_id;
|
||||
|
||||
#define switch_thread_data_set apr_thread_data_set
|
||||
#define switch_thread_data_get apr_thread_data_get
|
||||
#define switch_thread_self apr_os_thread_current
|
||||
|
||||
/**
|
||||
* Put the active calling thread to sleep until signaled to wake up. Each
|
||||
* condition variable must be associated with a mutex, and that mutex must
|
||||
|
||||
Reference in new issue
Block a user