VirtualBox

Ignore:
Timestamp:
Jan 28, 2009 7:11:27 PM (16 years ago)
Author:
vboxsync
Message:

Main/HostHardwareLinux: forgot two volatiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/linux/HostHardwareLinux.cpp

    r16178 r16327  
    230230    /** Semaphore which is set when a device is hotplugged and reset when
    231231     * it is read. */
    232     bool mTriggered;
     232    volatile bool mTriggered;
    233233    /** A flag to say that we wish to interrupt the current wait. */
    234     bool mInterrupt;
     234    volatile bool mInterrupt;
    235235    /** Constructor */
    236236    Context() : mTriggered(false), mInterrupt(false) {}
     
    263263            && !dbus_connection_add_filter (mContext->mConnection.get(),
    264264                                            dbusFilterFunction,
    265                                             &mContext->mTriggered, NULL))
     265                                            (void *) &mContext->mTriggered, NULL))
    266266            rc = VERR_NO_MEMORY;
    267267        if (RT_FAILURE (rc))
     
    277277    if (!!mContext->mConnection)
    278278        dbus_connection_remove_filter (mContext->mConnection.get(), dbusFilterFunction,
    279                                        &mContext->mTriggered);
     279                                       (void *) &mContext->mTriggered);
    280280    delete mContext;
    281281#endif /* defined RT_OS_LINUX && defined VBOX_WITH_DBUS */
     
    12061206                                      DBusMessage *pMessage, void *pvUser)
    12071207{
    1208     bool *pTriggered = reinterpret_cast<bool *> (pvUser);
     1208    volatile bool *pTriggered = reinterpret_cast<volatile bool *> (pvUser);
    12091209    if (   dbus_message_is_signal (pMessage, "org.freedesktop.Hal.Manager",
    12101210                                   "DeviceAdded")
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