mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 12:25:35 +00:00
Since this code now uses the API call for creating a detached thread, there
is no reason to keep a thread attribute structure on the conference structure. (Pointed out by Tony Mountifield on the asterisk-dev list) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -323,7 +323,6 @@ struct ast_conference {
|
||||
unsigned int isdynamic:1; /*!< Created on the fly? */
|
||||
unsigned int locked:1; /*!< Is the conference locked? */
|
||||
pthread_t recordthread; /*!< thread for recording */
|
||||
pthread_attr_t attr; /*!< thread attribute */
|
||||
const char *recordingfilename; /*!< Filename to record the Conference into */
|
||||
const char *recordingformat; /*!< Format to record the Conference in */
|
||||
char pin[MAX_PIN]; /*!< If protected by a PIN */
|
||||
@@ -1428,7 +1427,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
|
||||
ast_hangup(conf->lchan);
|
||||
conf->lchan = NULL;
|
||||
} else {
|
||||
ast_pthread_create_detached_background(&conf->recordthread, &conf->attr, recordthread, conf);
|
||||
ast_pthread_create_detached_background(&conf->recordthread, NULL, recordthread, conf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user