Changeset 16327 in vbox for trunk/src/VBox/Main/linux/HostHardwareLinux.cpp
- Timestamp:
- Jan 28, 2009 7:11:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/linux/HostHardwareLinux.cpp
r16178 r16327 230 230 /** Semaphore which is set when a device is hotplugged and reset when 231 231 * it is read. */ 232 bool mTriggered;232 volatile bool mTriggered; 233 233 /** A flag to say that we wish to interrupt the current wait. */ 234 bool mInterrupt;234 volatile bool mInterrupt; 235 235 /** Constructor */ 236 236 Context() : mTriggered(false), mInterrupt(false) {} … … 263 263 && !dbus_connection_add_filter (mContext->mConnection.get(), 264 264 dbusFilterFunction, 265 &mContext->mTriggered, NULL))265 (void *) &mContext->mTriggered, NULL)) 266 266 rc = VERR_NO_MEMORY; 267 267 if (RT_FAILURE (rc)) … … 277 277 if (!!mContext->mConnection) 278 278 dbus_connection_remove_filter (mContext->mConnection.get(), dbusFilterFunction, 279 &mContext->mTriggered);279 (void *) &mContext->mTriggered); 280 280 delete mContext; 281 281 #endif /* defined RT_OS_LINUX && defined VBOX_WITH_DBUS */ … … 1206 1206 DBusMessage *pMessage, void *pvUser) 1207 1207 { 1208 bool *pTriggered = reinterpret_cast<bool *> (pvUser);1208 volatile bool *pTriggered = reinterpret_cast<volatile bool *> (pvUser); 1209 1209 if ( dbus_message_is_signal (pMessage, "org.freedesktop.Hal.Manager", 1210 1210 "DeviceAdded")
Note:
See TracChangeset
for help on using the changeset viewer.