int error = hw_MasterServer(lua_State *L, ULONG flags, struct hwTagList *tags);
flagsparameter determines which sections of the master server you want to enter. The following flags are currently defined:
WaitEvent(). If for some reason your display adapter cannot delegate event handling to
HWMSFLAGS_RUNCALLBACKSflag allows you to manually force Hollywood to run user event callbacks when you need it. Use this flag with care. It's only needed under very special circumstances.
hw_MasterServer()with this flag set whenever it does some event processing. Hollywood's video server worker threads will wake up your event loop using ForceEventLoopIteration() whenever a video needs updating. That's why you should always call
HWMSFLAGS_DRAWVIDEOSwhenever you process your window events, preferably in your hw_HandleEvents() implementation.
Please note that this function should only be used by display adapter plugins. If Hollywood is using its default display adapter, it will take care of calling into the master server on its own.