mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
disabled code that required compiled boost libraries with an ifdef
This commit is contained in:
parent
0d2f0b3890
commit
a221b0757b
1 changed files with 6 additions and 0 deletions
|
@ -90,17 +90,22 @@ void NativeMessagingManager::openGuiMessageQueue()
|
|||
|
||||
void NativeMessagingManager::sendToGuiProcess(const QByteArray &array)
|
||||
{
|
||||
#ifdef BOOSTLIBS
|
||||
writeByteArray("{\"b\": 1}");
|
||||
ipc::message_queue messageQueue(ipc::open_only, "chatterino_gui");
|
||||
writeByteArray("{\"b\": 2}");
|
||||
|
||||
try {
|
||||
messageQueue.try_send(array.data(), array.size(), 1);
|
||||
} catch (ipc::interprocess_exception &ex) {
|
||||
qDebug() << "send to gui process:" << ex.what();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void NativeMessagingManager::ReceiverThread::run()
|
||||
{
|
||||
#ifdef BOOSTLIBS
|
||||
ipc::message_queue::remove("chatterino_gui");
|
||||
|
||||
ipc::message_queue messageQueue(ipc::create_only, "chatterino_gui", 100, MESSAGE_SIZE);
|
||||
|
@ -119,6 +124,7 @@ void NativeMessagingManager::ReceiverThread::run()
|
|||
qDebug() << "received from gui process:" << ex.what();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
|
Loading…
Reference in a new issue