JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Namespaces | Functions
juce_EventLoop_linux.h File Reference

Go to the source code of this file.

Namespaces

namespace  juce
 JUCE Namespace.
 

Functions

void juce::LinuxEventLoop::registerFdCallback (int fd, std::function< void(int)> readCallback, short eventMask=1)
 Registers a callback that will be called when a file descriptor is ready for I/O.
 
void juce::LinuxEventLoop::unregisterFdCallback (int fd)
 Unregisters a previously registered file descriptor.
 

Function Documentation

◆ registerFdCallback()

void juce::LinuxEventLoop::registerFdCallback ( int  fd,
std::function< void(int)>  readCallback,
short  eventMask = 1 
)

Registers a callback that will be called when a file descriptor is ready for I/O.

This will add the given file descriptor to the internal set of file descriptors that will be passed to the poll() call. When this file descriptor has data to read the readCallback will be called.

Parameters
fdthe file descriptor to be monitored
readCallbacka callback that will be called when the file descriptor has data to read. The file descriptor will be passed as an argument
eventMaska bit mask specifying the events you are interested in for the file descriptor. The possible values for this are defined in <poll.h>

Definition at line 357 of file juce_Messaging_linux.cpp.

◆ unregisterFdCallback()

void juce::LinuxEventLoop::unregisterFdCallback ( int  fd)

Unregisters a previously registered file descriptor.

See also
registerFdCallback

Definition at line 363 of file juce_Messaging_linux.cpp.