Changeset 17651 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Mar 10, 2009 10:27:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MachineImpl.h
r17287 r17651 90 90 91 91 /** 92 * 93 * 94 * Only one instance of this data exists per every machine --95 * it is shared by the Machine, SessionMachine and all SnapshotMachine96 * instances associated with the given machine using the util::Shareable97 * templatethrough the mData variable.98 * 99 * 100 * 101 * 102 * 103 * 92 * Internal machine data. 93 * 94 * Only one instance of this data exists per every machine -- it is shared 95 * by the Machine, SessionMachine and all SnapshotMachine instances 96 * associated with the given machine using the util::Shareable template 97 * through the mData variable. 98 * 99 * @note |const| members are persistent during lifetime so can be 100 * accessed without locking. 101 * 102 * @note There is no need to lock anything inside init() or uninit() 103 * methods, because they are always serialized (see AutoCaller). 104 104 */ 105 105 struct Data 106 106 { 107 107 /** 108 * 109 * 108 * Data structure to hold information about sessions opened for the 109 * given machine. 110 110 */ 111 111 struct Session … … 123 123 124 124 /** 125 * PID of the session object that must be passed to openSession()126 * to finalize the openRemoteSession() request127 * (i.e., PID of theprocess created by openRemoteSession())125 * PID of the session object that must be passed to openSession() to 126 * finalize the openRemoteSession() request (i.e., PID of the 127 * process created by openRemoteSession()) 128 128 */ 129 129 RTPROCESS mPid; … … 137 137 /** Session machine object */ 138 138 ComObjPtr <SessionMachine> mMachine; 139 140 /** 141 * Successfully locked media list. The 2nd value in the pair is true 142 * if the medium is locked for writing and false if locked for 143 * reading. 144 */ 145 typedef std::list <std::pair <ComPtr <IMedium>, bool > > LockedMedia; 146 LockedMedia mLockedMedia; 139 147 }; 140 148 … … 904 912 STDMETHOD(PushGuestProperty) (IN_BSTR aName, IN_BSTR aValue, 905 913 ULONG64 aTimestamp, IN_BSTR aFlags); 914 STDMETHOD(LockMedia)() { return lockMedia(); } 906 915 907 916 // public methods only for internal purposes … … 967 976 void discardSnapshotHandler (DiscardSnapshotTask &aTask); 968 977 void discardCurrentStateHandler (DiscardCurrentStateTask &aTask); 978 979 HRESULT lockMedia(); 980 void unlockMedia(); 969 981 970 982 HRESULT setMachineState (MachineState_T aMachineState);
Note:
See TracChangeset
for help on using the changeset viewer.