mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
fix obscure race condition
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7311 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -153,6 +153,7 @@ struct switch_media_bug {
|
||||
uint32_t flags;
|
||||
uint8_t ready;
|
||||
time_t stop_time;
|
||||
switch_thread_id_t thread_id;
|
||||
struct switch_media_bug *next;
|
||||
};
|
||||
|
||||
|
||||
@@ -830,6 +830,7 @@ SMBF_WRITE_REPLACE - Replace the Write Stream
|
||||
SMBF_READ_REPLACE - Replace the Read Stream
|
||||
SMBF_STEREO - Record in stereo
|
||||
SMBF_ANSWER_RECORD_REQ - Don't record until the channel is answered
|
||||
SMBF_THREAD_LOCK - Only let the same thread who created the bug remove it.
|
||||
</pre>
|
||||
*/
|
||||
typedef enum {
|
||||
@@ -840,7 +841,8 @@ typedef enum {
|
||||
SMBF_READ_REPLACE = (1 << 3),
|
||||
SMBF_READ_PING = (1 << 4),
|
||||
SMBF_STEREO = (1 << 5),
|
||||
SMBF_RECORD_ANSWER_REQ = (1 << 6)
|
||||
SMBF_RECORD_ANSWER_REQ = (1 << 6),
|
||||
SMBF_THREAD_LOCK = (1 << 7)
|
||||
} switch_media_bug_flag_t;
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user