|
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 |
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. | |
| 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.
| fd | the file descriptor to be monitored |
| readCallback | a callback that will be called when the file descriptor has data to read. The file descriptor will be passed as an argument |
| eventMask | a 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.
| void juce::LinuxEventLoop::unregisterFdCallback | ( | int | fd | ) |
Unregisters a previously registered file descriptor.
Definition at line 363 of file juce_Messaging_linux.cpp.