2 * Copyright 2001-2009, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
15 inline BAutolock(BLooper
* looper
);
16 inline BAutolock(BLocker
* locker
);
17 inline BAutolock(BLocker
& locker
);
20 inline bool IsLocked();
33 BAutolock::BAutolock(BLooper
*looper
)
37 fIsLocked(looper
->Lock())
43 BAutolock::BAutolock(BLocker
*locker
)
47 fIsLocked(locker
->Lock())
53 BAutolock::BAutolock(BLocker
&locker
)
57 fIsLocked(locker
.Lock())
63 BAutolock::~BAutolock()
83 fIsLocked
= fLooper
->Lock();
85 fIsLocked
= fLocker
->Lock();
105 #endif // _AUTOLOCK_H