How can i make sure that a given piece of code/library...
G-WAN provides the functions that will be called by your code, so there's no normal way for shared libraries (or G-WAN C/C++,D and Objective-C scripts) to bypass this feature when it is enabled by G-WAN.
Java and C# can bypass this feature because they use a virtual machine (out of the scope of the G-WAN process).
I would have a similar request when performing disk I/O
Unfortunately, epoll does not support file descriptors used to open disk files (it supports pipes and sockets).
If the disk latency is an issue then use a ramdisk (or an SSD if you need much more space than the available RAM).