Ticket #2159 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

Add synchronization for Endpoint::libRegisterThread()

Reported by: ming Owned by: bennylp
Priority: normal Milestone: release-2.9
Component: pjsua2 Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no


Currently libRegisterThread() is not thread-safe. The access to the thread descriptor map needs to be protected in order to avoid data race.

Change History

comment:1 Changed 3 months ago by ming

  • Status changed from new to closed
  • Resolution set to fixed

In 5904:

Fixed #2159: Add synchronization for Endpoint::libRegisterThread()

comment:2 Changed 2 months ago by ming

In 5912:

Re #2159: Replace std::mutex with PJSIP's own pj_mutex_t, since std::mutex is only available starting C++11

Note: See TracTickets for help on using tickets.