VirtualBox

Changeset 22847 in vbox for trunk/include


Ignore:
Timestamp:
Sep 8, 2009 8:37:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52083
Message:

Python, COM glue: event processing API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/EventQueue.h

    r22722 r22847  
    9191    BOOL handleEvent (Event *event);
    9292    static int processThreadEventQueue(uint32_t cMsTimeout, bool (*pfnExitCheck)(void *pvUser) = 0,
    93                                        void *pvUser = 0, uint32_t cMsPollInterval = 1000,
    94                                        bool fReturnOnEvent = true);
     93                                     void *pvUser = 0, uint32_t cMsPollInterval = 1000,
     94                                     bool fReturnOnEvent = true);
     95    /**
     96     * Process events pending on this event queue, and wait
     97     * up to given timeout, if nothing is available.
     98     * Must be called on same thread this event queue was created on.
     99     */
     100    int processEventQueue(uint32_t cMsTimeout);
     101    /**
     102     * Interrupt thread waiting on event queue processing.
     103     * Can be called on any thread.
     104     */
     105    int interruptEventQueueProcessing();
     106    /**
     107     * Initialize/deinitialize event queues.
     108     */
     109    static int init();
     110    static int deinit();
     111    /**
     112     * Get main event queue instance.
     113     */
     114    static EventQueue* getMainEventQueue();
    95115
    96116private:
     117    static EventQueue* mMainQueue;
    97118
    98119#if !defined (VBOX_WITH_XPCOM)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette