VirtualBox

Changeset 28965 in vbox


Ignore:
Timestamp:
May 3, 2010 9:55:57 AM (15 years ago)
Author:
vboxsync
Message:

ConsoleImplTeleporter.cpp: Retain the socket before letting SSM have a go at it with two thread (EMT + I/O).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImplTeleporter.cpp

    r28800 r28965  
    2929#include <iprt/err.h>
    3030#include <iprt/rand.h>
     31#include <iprt/socket.h>
    3132#include <iprt/tcp.h>
    3233#include <iprt/timer.h>
     
    12491250                break;
    12501251
     1252            RTSocketRetain(pState->mhSocket); /* For concurrent access by I/O thread and EMT. */
    12511253            pState->moffStream = 0;
    12521254            void *pvUser2 = static_cast<void *>(static_cast<TeleporterState *>(pState));
    12531255            vrc = VMR3LoadFromStream(pState->mpVM, &g_teleporterTcpOps, pvUser2,
    12541256                                     teleporterProgressCallback, pvUser2);
     1257            RTSocketRelease(pState->mhSocket);
    12551258            if (RT_FAILURE(vrc))
    12561259            {
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