2 * Copyright 2013, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
7 #include "SemaphoreInfo.h"
10 SemaphoreInfo::SemaphoreInfo()
21 SemaphoreInfo::SemaphoreInfo(const SemaphoreInfo
&other
)
24 fSemaphore(other
.fSemaphore
),
27 fLatestHolder(other
.fLatestHolder
)
32 SemaphoreInfo::SemaphoreInfo(team_id team
, sem_id semaphore
,
33 const BString
& name
, int32 count
, thread_id latestHolder
)
36 fSemaphore(semaphore
),
39 fLatestHolder(latestHolder
)
45 SemaphoreInfo::SetTo(team_id team
, sem_id semaphore
, const BString
& name
,
46 int32 count
, thread_id latestHolder
)
49 fSemaphore
= semaphore
;
52 fLatestHolder
= latestHolder
;