17 : pStreamSocket( aSocket ),
18 mFinishRequested( false )
24 osl_setThreadName(
"bluetooth Transmitter");
30 ::osl::MutexGuard aGuard(
mMutex );
39 SAL_INFO(
"sdremote.bluetooth",
"write high prio line '" << aMessage <<
"'" );
46 SAL_INFO(
"sdremote.bluetooth",
"write normal line '" << aMessage <<
"'" );
59 ::osl::MutexGuard aGuard(
mMutex );
70 ::osl::MutexGuard aGuard(
mMutex );
::osl::Condition mProcessingRequired
bool mFinishRequested
Used to indicate that we're done and the transmitter loop should exit.
virtual ~Transmitter() override
std::queue< OString > mHighPriority
Queue for high priority messages. All access must be guarded my mMutex.
::sd::IBluetoothSocket * pStreamSocket
std::queue< OString > mLowPriority
Queue for low priority messages. All access must be guarded my mMutex.
virtual void SAL_CALL run() override
void addMessage(const OString &aMessage, const Priority aPriority)
#define SAL_INFO(area, stream)
Interface for bluetooth data io.
virtual sal_Int32 write(const void *pBuffer, sal_uInt32 n)=0
Write a number of bytes.