Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "Update: Example Clang and Coding Rules"

Merged MONSEIGNE Thibaut requested to merge 188-update-example-clang-and-coding-rules into development
Files
15
@@ -19,18 +19,15 @@ public:
* @throw boost::interprocess::interprocess_exception Throws an
* interprocess exception in the queue fails to be created.
*/
explicit CStimulationConnection(std::string queueName = "openvibeExternalStimulations")
: m_messageQueueName(std::move(queueName))
explicit CStimulationConnection(std::string queueName = "openvibeExternalStimulations") : m_messageQueueName(std::move(queueName))
{
boost::interprocess::message_queue::remove(m_messageQueueName.c_str());
try
{
try {
m_messageQueue = new boost::interprocess::message_queue(boost::interprocess::create_only, m_messageQueueName.c_str(), m_maxMessages,
m_chunkLength * sizeof(uint64_t));
}
catch (boost::interprocess::interprocess_exception& exception)
{
catch (boost::interprocess::interprocess_exception& exception) {
std::cout << exception.what() << std::endl; // log
throw;
}
@@ -43,7 +40,7 @@ public:
* @throw boost::interprocess::interprocess_exception Throws an exception
* if the message sending failed.
*/
void sendStimulation(const uint64_t stimulationID) const
void SendStimulation(const uint64_t stimulationID) const
{
struct timeb currentTime;
@@ -57,8 +54,7 @@ public:
message[2] = stimulationTime;
try { m_messageQueue->send(&message, sizeof(message), 0); }
catch (boost::interprocess::interprocess_exception& exception)
{
catch (boost::interprocess::interprocess_exception& exception) {
std::cout << exception.what() << std::endl; // log
throw;
}
Loading