Skip to content

Commit

Permalink
print thread names
Browse files Browse the repository at this point in the history
  • Loading branch information
ecolsen7 committed Mar 7, 2024
1 parent 4cf1eda commit 6141af1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pjmedia/src/pjmedia/conference.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <pj/log.h>
#include <pj/pool.h>
#include <pj/string.h>
#include <pj/os.h>

#if !defined(PJMEDIA_CONF_USE_SWITCH_BOARD) || PJMEDIA_CONF_USE_SWITCH_BOARD==0

Expand Down Expand Up @@ -1285,7 +1286,7 @@ PJ_DEF(pj_status_t) pjmedia_conf_remove_port( pjmedia_conf *conf,
}

/* Remove the port. */
PJ_LOG(2, (THIS_FILE, "REMOVING PORT %d", port));
PJ_LOG(2, (THIS_FILE, "REMOVING PORT %d | %s", port, pj_thread_get_name(pj_thread_this())));
conf->ports[port] = NULL;
--conf->port_cnt;

Expand Down
3 changes: 2 additions & 1 deletion pjsip/src/pjsua-lib/pjsua_aud.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <pjsua-lib/pjsua.h>
#include <pj/os.h>
#include <pjsua-lib/pjsua_internal.h>

#if defined(PJSUA_MEDIA_HAS_PJMEDIA) && PJSUA_MEDIA_HAS_PJMEDIA != 0
Expand Down Expand Up @@ -1511,7 +1512,7 @@ PJ_DEF(pj_status_t) pjsua_player_destroy(pjsua_player_id id)
PJSUA_LOCK();

if (pjsua_var.player[id].port) {
PJ_LOG(2, (THIS_FILE, "pjsua_conf_remove_port 2"));
PJ_LOG(2, (THIS_FILE, "pjsua_conf_remove_port %d B | %s", pjsua_var.player[id].slot, pj_thread_get_name(pj_thread_this())));
pjsua_conf_remove_port(pjsua_var.player[id].slot);
pjmedia_port_destroy(pjsua_var.player[id].port);
pjsua_var.player[id].port = NULL;
Expand Down
3 changes: 2 additions & 1 deletion pjsip/src/pjsua2/media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <pj/ctype.h>
#include <pj/os.hpp>
#include <pjsua2/media.hpp>
#include <pjsua2/types.hpp>
#include <pjsua2/endpoint.hpp>
Expand Down Expand Up @@ -276,7 +277,7 @@ AudioMediaPlayer::~AudioMediaPlayer()
{
if (playerId != PJSUA_INVALID_ID) {
unregisterMediaPort();
PJ_LOG(2, (THIS_FILE, "pjsua_player_destroy 2"));
PJ_LOG(2, (THIS_FILE, "pjsua_player_destroy 2 | %s", pj_thread_get_name(pj_thread_this())));
pjsua_player_destroy(playerId);
}
}
Expand Down

0 comments on commit 6141af1

Please sign in to comment.