The consumer thread handles socket creation, destruction, and data processing for socket IPC. Traditionally this has been done on the main thread. This patch extends the socket IPC classes to support arbitrary consumer threads. The thread is configured when establishing a connection, and performs all of the above operations until the socket is closed.
33 lines
721 B
C++
33 lines
721 B
C++
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "ConnectionOrientedSocket.h"
|
|
|
|
namespace mozilla {
|
|
namespace ipc {
|
|
|
|
//
|
|
// ConnectionOrientedSocketIO
|
|
//
|
|
|
|
ConnectionOrientedSocketIO::ConnectionOrientedSocketIO(
|
|
nsIThread* aConsumerThread)
|
|
: DataSocketIO(aConsumerThread)
|
|
{ }
|
|
|
|
ConnectionOrientedSocketIO::~ConnectionOrientedSocketIO()
|
|
{ }
|
|
|
|
//
|
|
// ConnectionOrientedSocket
|
|
//
|
|
|
|
ConnectionOrientedSocket::~ConnectionOrientedSocket()
|
|
{ }
|
|
|
|
}
|
|
}
|