Skip to content

Commit

Permalink
Fixed srt::sync::CThread::id.
Browse files Browse the repository at this point in the history
Added default constructor, dropped constantness.
  • Loading branch information
maxsharabayko committed Apr 20, 2022
1 parent f060f86 commit c2a2d35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion srtcore/sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,17 @@ class CThread

struct id
{
id()
: value()
{
}

explicit id(const pthread_t t)
: value(t)
{}

const pthread_t value;
pthread_t value;

inline bool operator==(const id& second) const
{
return pthread_equal(value, second.value) != 0;
Expand Down

0 comments on commit c2a2d35

Please sign in to comment.