2 * Copyright 2007, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, axeld@pinc-software.de
10 #include <DirectMessageTarget.h>
16 BDirectMessageTarget::BDirectMessageTarget()
24 BDirectMessageTarget::~BDirectMessageTarget()
30 BDirectMessageTarget::AddMessage(BMessage
* message
)
37 fQueue
.AddMessage(message
);
43 BDirectMessageTarget::Close()
50 BDirectMessageTarget::Acquire()
52 atomic_add(&fReferenceCount
, 1);
57 BDirectMessageTarget::Release()
59 if (atomic_add(&fReferenceCount
, -1) == 1)
63 } // namespace BPrivate