VirtualBox

Changeset 51620 in vbox for trunk/src


Ignore:
Timestamp:
Jun 16, 2014 10:20:15 AM (10 years ago)
Author:
vboxsync
Message:

DnD: Autocallers, locking.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp

    r51556 r51620  
    102102#else /* VBOX_WITH_DRAG_AND_DROP */
    103103
     104    AutoCaller autoCaller(this);
     105    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     106
     107    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     108
    104109    return GuestDnDBase::isFormatSupported(aFormat, aSupported);
    105110#endif /* VBOX_WITH_DRAG_AND_DROP */
     
    112117#else /* VBOX_WITH_DRAG_AND_DROP */
    113118
     119    AutoCaller autoCaller(this);
     120    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     121
     122    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     123
    114124    return GuestDnDBase::getFormats(aFormats);
    115125#endif /* VBOX_WITH_DRAG_AND_DROP */
     
    122132#else /* VBOX_WITH_DRAG_AND_DROP */
    123133
     134    AutoCaller autoCaller(this);
     135    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     136
     137    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     138
    124139    return GuestDnDBase::addFormats(aFormats);
    125140#endif /* VBOX_WITH_DRAG_AND_DROP */
     
    131146    ReturnComNotImplemented();
    132147#else /* VBOX_WITH_DRAG_AND_DROP */
     148
     149    AutoCaller autoCaller(this);
     150    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     151
     152    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    133153
    134154    return GuestDnDBase::removeFormats(aFormats);
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r51556 r51620  
    101101#else /* VBOX_WITH_DRAG_AND_DROP */
    102102
     103    AutoCaller autoCaller(this);
     104    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     105
     106    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     107
    103108    return GuestDnDBase::isFormatSupported(aFormat, aSupported);
    104109#endif /* VBOX_WITH_DRAG_AND_DROP */
     
    111116#else /* VBOX_WITH_DRAG_AND_DROP */
    112117
     118    AutoCaller autoCaller(this);
     119    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     120
     121    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     122
    113123    return GuestDnDBase::getFormats(aFormats);
    114124#endif /* VBOX_WITH_DRAG_AND_DROP */
     
    121131#else /* VBOX_WITH_DRAG_AND_DROP */
    122132
     133    AutoCaller autoCaller(this);
     134    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     135
     136    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     137
    123138    return GuestDnDBase::addFormats(aFormats);
    124139#endif /* VBOX_WITH_DRAG_AND_DROP */
     
    130145    ReturnComNotImplemented();
    131146#else /* VBOX_WITH_DRAG_AND_DROP */
     147
     148    AutoCaller autoCaller(this);
     149    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     150
     151    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    132152
    133153    return GuestDnDBase::removeFormats(aFormats);
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