MCPcopy Create free account
hub / github.com/LMMS/lmms / messagesLeft

Function messagesLeft

include/RemotePlugin.h:604–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602
603#ifndef BUILD_REMOTE_PLUGIN_CLIENT
604 inline bool messagesLeft()
605 {
606#ifdef SYNC_WITH_SHM_FIFO
607 return m_in->messagesLeft();
608#else
609 struct pollfd pollin;
610 pollin.fd = m_socket;
611 pollin.events = POLLIN;
612
613 if ( poll( &pollin, 1, 0 ) == -1 )
614 {
615 qWarning( "Unexpected poll error." );
616 }
617 return pollin.revents & POLLIN;
618#endif
619 }
620
621 inline void fetchAndProcessAllMessages()
622 {

Callers 2

waitForMessageMethod · 0.85

Calls 1

messagesLeftMethod · 0.80

Tested by

no test coverage detected