Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2159 closed defect (fixed)

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 (2)

comment:1 Changed 6 years ago by ming

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

In 5904:

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

comment:2 Changed 6 years 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.