Skip to content

Commit

Permalink
Updated muscle submodule, and replaced newnothrow calls with new
Browse files Browse the repository at this point in the history
  • Loading branch information
jfriesne committed Apr 24, 2024
1 parent d285fa4 commit d6d46af
Show file tree
Hide file tree
Showing 17 changed files with 46 additions and 103 deletions.
9 changes: 4 additions & 5 deletions demos/choir/ChoirSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,11 @@ IDatabaseObjectRef ChoirSession :: CreateDatabaseObject(uint32 whichDatabase)
IDatabaseObjectRef ret;
switch(whichDatabase)
{
case CHOIR_DATABASE_SCORE: ret.SetRef(newnothrow MusicSheet( this, whichDatabase)); break;
case CHOIR_DATABASE_PLAYBACKSTATE: ret.SetRef(newnothrow PlaybackState( this, whichDatabase)); break;
case CHOIR_DATABASE_ROSTER: ret.SetRef(newnothrow NoteAssignmentsMap(this, whichDatabase)); break;
default: /* empty */ break;
case CHOIR_DATABASE_SCORE: ret.SetRef(new MusicSheet( this, whichDatabase)); break;
case CHOIR_DATABASE_PLAYBACKSTATE: ret.SetRef(new PlaybackState( this, whichDatabase)); break;
case CHOIR_DATABASE_ROSTER: ret.SetRef(new NoteAssignmentsMap(this, whichDatabase)); break;
default: /* empty */ break;
}
if (ret() == NULL) MWARN_OUT_OF_MEMORY;
return ret;
}

Expand Down
23 changes: 3 additions & 20 deletions demos/fridge/server/FridgeServerProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,26 +123,9 @@ class FridgePeerSession : public MessageTreeDatabasePeerSession
{
switch(whichDatabase)
{
case FRIDGE_DB_PROJECT:
{
IDatabaseObjectRef ret(newnothrow MagnetsMessageTreeDatabaseObject(this, whichDatabase, "project"));
if (ret() == NULL) MWARN_OUT_OF_MEMORY;
return ret;
}

case FRIDGE_DB_CHAT:
{
IDatabaseObjectRef ret(newnothrow MessageTreeDatabaseObject(this, whichDatabase, "chat"));
if (ret() == NULL) MWARN_OUT_OF_MEMORY;
return ret;
}

case FRIDGE_DB_CLIENTS:
{
IDatabaseObjectRef ret(newnothrow ClientDataMessageTreeDatabaseObject(this, whichDatabase, "clients"));
if (ret() == NULL) MWARN_OUT_OF_MEMORY;
return ret;
}
case FRIDGE_DB_PROJECT: return IDatabaseObjectRef(new MagnetsMessageTreeDatabaseObject( this, whichDatabase, "project"));
case FRIDGE_DB_CHAT: return IDatabaseObjectRef(new MessageTreeDatabaseObject( this, whichDatabase, "chat"));
case FRIDGE_DB_CLIENTS: return IDatabaseObjectRef(new ClientDataMessageTreeDatabaseObject(this, whichDatabase, "clients"));

default:
LogTime(MUSCLE_LOG_CRITICALERROR, "FridgePeerSession::CreateDatabaseObject(" UINT32_FORMAT_SPEC "): Unknown database ID!\n", whichDatabase);
Expand Down
3 changes: 1 addition & 2 deletions src/ZGPeerSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ status_t ZGPeerSession :: AttachedToServer()
{
MRETURN_ON_ERROR(StorageReflectSession::AttachedToServer());

PZGNetworkIOSessionRef ioSessionRef(newnothrow PZGNetworkIOSession(_peerSettings, _localPeerID, this));
MRETURN_OOM_ON_NULL(ioSessionRef());
PZGNetworkIOSessionRef ioSessionRef(new PZGNetworkIOSession(_peerSettings, _localPeerID, this));
MRETURN_ON_ERROR(AddNewSession(ioSessionRef));
_networkIOSession = ioSessionRef;

Expand Down
8 changes: 2 additions & 6 deletions src/ZGStdinSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ ZGStdinSession :: ZGStdinSession(ITextCommandReceiver & target, bool endServerOn

DataIORef ZGStdinSession :: CreateDataIO(const ConstSocketRef &)
{
DataIO * dio = newnothrow StdinDataIO(false);
MRETURN_OOM_ON_NULL(dio);
return DataIORef(dio);
return DataIORef(new StdinDataIO(false));
}

bool ZGStdinSession :: IsReallyStdin() const
Expand Down Expand Up @@ -46,9 +44,7 @@ bool ZGStdinSession :: IsReadyForInput() const

AbstractMessageIOGatewayRef ZGStdinSession :: CreateGateway()
{
AbstractMessageIOGateway * gw = newnothrow PlainTextMessageIOGateway;
MRETURN_OOM_ON_NULL(gw);
return AbstractMessageIOGatewayRef(gw);
return AbstractMessageIOGatewayRef(new PlainTextMessageIOGateway);
}

void ZGStdinSession :: MessageReceivedFromGateway(const MessageRef & msg, void * /*ptr*/)
Expand Down
16 changes: 6 additions & 10 deletions src/connector/ClientConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ class UDPTimeSyncSession : public AbstractReflectSession

virtual DataIORef CreateDataIO(const ConstSocketRef & socket)
{
UDPSocketDataIORef dio(newnothrow UDPSocketDataIO(socket, false));
MRETURN_OOM_ON_NULL(dio());

UDPSocketDataIORef dio(new UDPSocketDataIO(socket, false));
(void) dio()->SetPacketSendDestination(_timeSyncDest);
return dio;
}
Expand Down Expand Up @@ -161,8 +159,7 @@ class TCPConnectorSession : public AbstractReflectSession

if (_timeSyncDest.IsValid())
{
_timeSyncSession.SetRef(newnothrow UDPTimeSyncSession(this, _timeSyncDest));
MRETURN_OOM_ON_NULL(_timeSyncSession());
_timeSyncSession.SetRef(new UDPTimeSyncSession(this, _timeSyncDest));
MRETURN_ON_ERROR(AddNewSession(_timeSyncSession));
}

Expand Down Expand Up @@ -220,8 +217,7 @@ class TCPConnectorSession : public AbstractReflectSession

virtual AbstractMessageIOGatewayRef CreateGateway()
{
MessageIOGatewayRef ret(newnothrow MessageIOGateway());
MRETURN_OOM_ON_NULL(ret());
MessageIOGatewayRef ret(new MessageIOGateway());
ret()->SetAboutToFlattenMessageCallback(WatchForLocalPingMessagesCallbackFunc, this);
return ret;
}
Expand Down Expand Up @@ -384,10 +380,10 @@ class ClientConnectorImplementation : private Thread, private IDiscoveryNotifica
_isActive = true;

// This is the filter the DiscoveryModule will actually use (it's a superset of the _optAdditionalDiscoveryCriteria because it also specifies what system name(s) we will accept)
_discoFilterRef.SetRef(newnothrow StringQueryFilter(ZG_DISCOVERY_NAME_SYSTEMNAME, StringQueryFilter::OP_SIMPLE_WILDCARD_MATCH, _systemNamePattern));
if ((_discoFilterRef())&&(_optAdditionalDiscoveryCriteria())) _discoFilterRef.SetRef(newnothrow AndQueryFilter(_discoFilterRef, _optAdditionalDiscoveryCriteria));
_discoFilterRef.SetRef(new StringQueryFilter(ZG_DISCOVERY_NAME_SYSTEMNAME, StringQueryFilter::OP_SIMPLE_WILDCARD_MATCH, _systemNamePattern));
if (_optAdditionalDiscoveryCriteria()) _discoFilterRef.SetRef(new AndQueryFilter(_discoFilterRef, _optAdditionalDiscoveryCriteria));

const status_t ret = _discoFilterRef() ? StartInternalThread() : B_OUT_OF_MEMORY;
const status_t ret = StartInternalThread();
if (ret.IsError()) Stop(); // roll back the state we set above
return ret;
}
Expand Down
9 changes: 3 additions & 6 deletions src/discovery/client/SystemDiscoveryClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ class DiscoveryClientManagerSession : public AbstractReflectSession, public INet

virtual AbstractMessageIOGatewayRef CreateGateway()
{
AbstractMessageIOGatewayRef ret(newnothrow SignalMessageIOGateway());
MRETURN_OOM_ON_NULL(ret());
return ret;
return AbstractMessageIOGatewayRef(new SignalMessageIOGateway());
}

virtual status_t AttachedToServer()
Expand Down Expand Up @@ -228,10 +226,9 @@ class DiscoveryClientManagerSession : public AbstractReflectSession, public INet
{
// Use a different socket for each IP address, to avoid Mac routing problems
const IPAddressAndPort & iap = iter.GetKey();
DiscoverySessionRef ldsRef(new DiscoverySession(iap, this));
status_t ret;
DiscoverySessionRef ldsRef(newnothrow DiscoverySession(iap, this));
if (ldsRef() == NULL) MWARN_OUT_OF_MEMORY;
else if (AddNewSession(ldsRef).IsError(ret)) LogTime(MUSCLE_LOG_ERROR, "Could not create discovery session for [%s] [%s]\n", iap.ToString()(), ret());
if (AddNewSession(ldsRef).IsError(ret)) LogTime(MUSCLE_LOG_ERROR, "Could not create discovery session for [%s] [%s]\n", iap.ToString()(), ret());
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/discovery/server/DiscoveryServerSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ void DiscoveryServerSession :: NetworkInterfacesChanged(const Hashtable<String,

status_t DiscoveryServerSession :: AttachedToServer()
{
_watchInterfacesSession.SetRef(newnothrow DiscoveryDetectNetworkConfigChangesSession(this));
MRETURN_OOM_ON_NULL(_watchInterfacesSession());
_watchInterfacesSession.SetRef(new DiscoveryDetectNetworkConfigChangesSession(this));

status_t ret;
if (AddNewSession(_watchInterfacesSession).IsError(ret))
Expand Down
7 changes: 3 additions & 4 deletions src/messagetree/gateway/MuxTreeGateway.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ status_t MuxTreeGateway :: TreeGateway_AddSubscription(ITreeGatewaySubscriber *
if (hisSubs() == NULL)
{
// demand-allocate an entry for him
hisSubs.SetRef(newnothrow TreeSubscriberInfo);
if ((hisSubs())&&(_subscriberInfos.Put(calledBy, hisSubs).IsError())) hisSubs.Reset();
hisSubs.SetRef(new TreeSubscriberInfo);
if (_subscriberInfos.Put(calledBy, hisSubs).IsError()) hisSubs.Reset();
if ((hisSubs())&&(_isConnected)) calledBy->TreeGatewayConnectionStateChanged(); // let him know we are connected to the server already
}

Expand Down Expand Up @@ -477,14 +477,13 @@ status_t MuxTreeGateway :: UpdateSubscription(const String & subscriptionPath, I
if (unionFilter()) oqf = const_cast<OrQueryFilter *>(static_cast<const OrQueryFilter *>(unionFilter()));
else
{
oqf = newnothrow OrQueryFilter;
oqf = new OrQueryFilter;
if (oqf)
{
unionFilter.SetRef(oqf);
(void) oqf->GetChildren().AddTail(sendFilter);
sendFilter = unionFilter;
}
else MWARN_OUT_OF_MEMORY;
}
if (oqf) (void) oqf->GetChildren().AddTail(nextFilter);
}
Expand Down
3 changes: 1 addition & 2 deletions src/messagetree/server/ServerSideMessageTreeSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ ServerSideMessageTreeSessionFactory :: ServerSideMessageTreeSessionFactory(ITree

AbstractReflectSessionRef ServerSideMessageTreeSessionFactory :: CreateSession(const String & /*clientAddress*/, const IPAddressAndPort & /*factoryInfo*/)
{
ServerSideMessageTreeSessionRef ret(newnothrow ServerSideMessageTreeSession(GetGateway()));
MRETURN_OOM_ON_NULL(ret());
ServerSideMessageTreeSessionRef ret(new ServerSideMessageTreeSession(GetGateway()));
ret()->SetLogOnAttachAndDetach(_announceClientConnectsAndDisconnects);
return ret;
}
Expand Down
8 changes: 3 additions & 5 deletions src/private/PZGHeartbeatSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ static UDPSocketDataIORef CreateMulticastDataIO(const IPAddressAndPort & multica
{
if (AddSocketToMulticastGroup(udpSock, multicastIAP.GetIPAddress()).IsOK(ret))
{
UDPSocketDataIORef ret(newnothrow UDPSocketDataIO(udpSock, false));
MRETURN_OOM_ON_NULL(ret());
UDPSocketDataIORef ret(new UDPSocketDataIO(udpSock, false));
(void) ret()->SetPacketSendDestination(multicastIAP);
return ret;
}
Expand Down Expand Up @@ -149,13 +148,12 @@ Queue<PacketDataIORef> PZGHeartbeatSettings :: CreateMulticastDataIOs(bool isFor
{
case MULTICAST_MODE_SIMULATED:
{
SimulatedMulticastDataIORef wifiIO(newnothrow SimulatedMulticastDataIO(IPAddressAndPort(MungeMulticastAddress(nextMulticastAddress), udpPort)));
if ((wifiIO())&&(ret.AddTail(wifiIO).IsOK()))
SimulatedMulticastDataIORef wifiIO(new SimulatedMulticastDataIO(IPAddressAndPort(MungeMulticastAddress(nextMulticastAddress), udpPort)));
if (ret.AddTail(wifiIO).IsOK())
{
LogTime(MUSCLE_LOG_DEBUG, "Using SimulatedMulticastDataIO for %s on %s interface [%s]\n", dataDesc, ifTypeDesc, nii.ToString()());
(void) iidxQ.AddTail(iidx);
}
else MWARN_OUT_OF_MEMORY;
}
break;

Expand Down
3 changes: 1 addition & 2 deletions src/private/PZGHeartbeatSourceState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ status_t PZGHeartbeatSourceState :: AddMeasurement(const IPAddressAndPort & mult
PZGRoundTripTimeAveragerRef * rtt = _rttAveragers.Get(multicastAddr);
if (rtt == NULL)
{
PZGRoundTripTimeAveragerRef r(newnothrow PZGRoundTripTimeAverager(_maxMeasurements));
MRETURN_OOM_ON_NULL(r());
PZGRoundTripTimeAveragerRef r(new PZGRoundTripTimeAverager(_maxMeasurements));

rtt = _rttAveragers.PutAndGet(multicastAddr, r);
MRETURN_OOM_ON_NULL(rtt);
Expand Down
3 changes: 1 addition & 2 deletions src/private/PZGHeartbeatThreadState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,7 @@ void PZGHeartbeatThreadState :: ExpireSource(const PZGHeartbeatSourceKey & sourc

void PZGHeartbeatThreadState :: IntroduceSource(const PZGHeartbeatSourceKey & source, const PZGHeartbeatPacketWithMetaDataRef & newHB, uint64 localExpirationTimeMicros)
{
PZGHeartbeatSourceStateRef newSource(newnothrow PZGHeartbeatSourceState(20));
if (newSource() == NULL) {MWARN_OUT_OF_MEMORY; return;}
PZGHeartbeatSourceStateRef newSource(new PZGHeartbeatSourceState(20));

newSource()->SetHeartbeatPacket(newHB, localExpirationTimeMicros);
if (_onlineSources.Put(source, newSource).IsOK())
Expand Down
28 changes: 8 additions & 20 deletions src/private/PZGNetworkIOSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ class PZGUnicastSessionFactory : public ReflectSessionFactory

virtual AbstractReflectSessionRef CreateSession(const String & /*clientAddress*/, const IPAddressAndPort & /*factoryInfo*/)
{
PZGUnicastSessionRef ret(newnothrow PZGUnicastSession(_master, ZGPeerID()));
MRETURN_OOM_ON_NULL(ret());
return ret;
return AbstractReflectSessionRef(new PZGUnicastSession(_master, ZGPeerID()));
}

private:
Expand Down Expand Up @@ -182,18 +180,15 @@ void PZGNetworkIOSession :: MessageReceivedFromInternalThread(const MessageRef &

status_t PZGNetworkIOSession :: AttachedToServer()
{
PZGUnicastSessionFactoryRef unicastTCPFactoryRef(newnothrow PZGUnicastSessionFactory(this));
MRETURN_OOM_ON_NULL(unicastTCPFactoryRef());
PZGUnicastSessionFactoryRef unicastTCPFactoryRef(new PZGUnicastSessionFactory(this));

uint16 tcpAcceptPort;
MRETURN_ON_ERROR(PutAcceptFactory(0, unicastTCPFactoryRef, invalidIP, &tcpAcceptPort));

_hbSettings.SetRef(newnothrow PZGHeartbeatSettings(_peerSettings, _localPeerID, tcpAcceptPort));
if (_hbSettings() == NULL) {(void) RemoveAcceptFactory(tcpAcceptPort); MRETURN_OUT_OF_MEMORY;}
_hbSettings.SetRef(new PZGHeartbeatSettings(_peerSettings, _localPeerID, tcpAcceptPort));
LogTime(MUSCLE_LOG_DEBUG, "This peer's ZGPeerID is: [%s]\n", GetLocalPeerID().ToString()());

DetectNetworkConfigChangesSessionRef dnccSessionRef(newnothrow DetectNetworkConfigChangesSession);
MRETURN_OOM_ON_NULL(dnccSessionRef());
DetectNetworkConfigChangesSessionRef dnccSessionRef(new DetectNetworkConfigChangesSession);

status_t ret;
if (AddNewSession(dnccSessionRef).IsError(ret))
Expand All @@ -211,8 +206,7 @@ status_t PZGNetworkIOSession :: AttachedToServer()

status_t PZGNetworkIOSession :: SetupHeartbeatSession()
{
PZGHeartbeatSessionRef hbSessionRef(newnothrow PZGHeartbeatSession(_hbSettings, this));
MRETURN_OOM_ON_NULL(hbSessionRef());
PZGHeartbeatSessionRef hbSessionRef(new PZGHeartbeatSession(_hbSettings, this));

status_t ret;
if (AddNewSession(hbSessionRef).IsError(ret))
Expand Down Expand Up @@ -386,13 +380,8 @@ void PZGNetworkIOSession :: InternalThreadEntry()
PacketDataIORef & dio = dios[i];
if (RegisterInternalThreadSocket(dio()->GetReadSelectSocket(), SOCKET_SET_READ).IsError()) LogTime(MUSCLE_LOG_ERROR, "PZGNetworkIOSession: Couldn't register DataIO # " UINT32_FORMAT_SPEC " for input!\n", i);

PacketTunnelIOGatewayRef ptRef(newnothrow PacketTunnelIOGateway);
if ((ptRef())&&(ptGateways.AddTail(ptRef).IsOK())) ptRef()->SetDataIO(dio);
else
{
LogTime(MUSCLE_LOG_ERROR, "Couldn't create PacketTunnelIOGateway for DataIO #" UINT32_FORMAT_SPEC "\n", i);
(void) dios.RemoveItemAt(i--); // no point in keeping it around if we can't have a gateway for it
}
PacketTunnelIOGatewayRef ptRef(new PacketTunnelIOGateway);
if (ptGateways.AddTail(ptRef).IsOK()) ptRef()->SetDataIO(dio);
}
}
else LogTime(MUSCLE_LOG_ERROR, "PZGNetworkIOSession: Couldn't create Multicast DataIOs!\n");
Expand Down Expand Up @@ -591,8 +580,7 @@ PZGUnicastSessionRef PZGNetworkIOSession :: GetUnicastSessionForPeerID(const ZGP
return B_DATA_NOT_FOUND;
}

PZGUnicastSessionRef usRef(newnothrow PZGUnicastSession(this, peerID));
MRETURN_OOM_ON_NULL(usRef());
PZGUnicastSessionRef usRef(new PZGUnicastSession(this, peerID));

status_t ret;
if (AddNewConnectSession(usRef, iap, MUSCLE_TIME_NEVER, SecondsToMicros(5)).IsError(ret))
Expand Down
4 changes: 1 addition & 3 deletions src/private/PZGThreadedSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ ConstSocketRef PZGThreadedSession :: CreateDefaultSocket()

AbstractMessageIOGatewayRef PZGThreadedSession :: CreateGateway()
{
SignalMessageIOGatewayRef gwRef(newnothrow SignalMessageIOGateway);
MRETURN_OOM_ON_NULL(gwRef());
return gwRef;
return AbstractMessageIOGatewayRef(new SignalMessageIOGateway);
}

status_t PZGThreadedSession :: AttachedToServer()
Expand Down
16 changes: 6 additions & 10 deletions src/udp/UDPMulticastTransceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ class MulticastUDPSession : public AbstractReflectSession
virtual DataIORef CreateDataIO(const ConstSocketRef & s)
{
PacketDataIO * udpIO;
if (_useSimulatedMulticast) udpIO = newnothrow SimulatedMulticastDataIO(_multicastIAP);
else udpIO = newnothrow UDPSocketDataIO(s, false);
MRETURN_OOM_ON_NULL(udpIO);
if (_useSimulatedMulticast) udpIO = new SimulatedMulticastDataIO(_multicastIAP);
else udpIO = new UDPSocketDataIO(s, false);

DataIORef ret(udpIO);
(void) udpIO->SetPacketSendDestination(_multicastIAP);
Expand Down Expand Up @@ -141,9 +140,7 @@ class MulticastUDPClientManagerSession : public AbstractReflectSession, public I

virtual AbstractMessageIOGatewayRef CreateGateway()
{
AbstractMessageIOGatewayRef ret(newnothrow SignalMessageIOGateway());
MRETURN_OOM_ON_NULL(ret());
return ret;
return AbstractMessageIOGatewayRef(new SignalMessageIOGateway());
}

virtual status_t AttachedToServer()
Expand Down Expand Up @@ -239,11 +236,10 @@ class MulticastUDPClientManagerSession : public AbstractReflectSession, public I
if (useSimulatedMulticast) iap.SetPort(iap.GetPort()+100); // just to keep SimulatedMulticastDataIO control-packets from leaking into the user's standard-multicast receivers

// Use a different socket for each IP address, to avoid Mac routing problems
status_t ret;
MulticastUDPSessionRef msRef(newnothrow MulticastUDPSession(useSimulatedMulticast, iap, this));
MulticastUDPSessionRef msRef(new MulticastUDPSession(useSimulatedMulticast, iap, this));

if (msRef() == NULL) MWARN_OUT_OF_MEMORY;
else if (AddNewSession(msRef).IsOK(ret))
status_t ret;
if (AddNewSession(msRef).IsOK(ret))
{
const int iidx = iap.GetIPAddress().GetInterfaceIndex();
if (_udpSessions.ContainsKey(iidx)) LogTime(MUSCLE_LOG_CRITICALERROR, "MulticastUDPClientManagerSession: Multiple UDP sessions have the same interface index %i!\n", iidx);
Expand Down
2 changes: 1 addition & 1 deletion submodules/muscle
Submodule muscle updated 72 files
+3 −0 COMPILEROPTIONS.txt
+53 −0 HISTORY.txt
+0 −3 HOWTOBUILD.txt
+1 −1 README.html
+2 −2 dataio/ChildProcessDataIO.cpp
+2 −2 dataio/RS232DataIO.cpp
+2 −6 dataio/SimulatedMulticastDataIO.cpp
+1 −1 html/Beginners Guide.html
+7 −46 html/Custom Servers.html
+0 −1 html/muscle-by-example/docs/index.md
+0 −1 html/muscle-by-example/examples/README.TXT
+1 −3 html/muscle-by-example/examples/refcount/example_5_error_reporting.cpp
+2 −6 html/muscle-by-example/examples/reflector/example_7_smart_server_with_udp_pingpong.cpp
+2 −5 html/muscle-by-example/examples/thread/example_2_dumb_server_with_thread.cpp
+2 −6 iogateway/MessageIOGateway.cpp
+10 −18 iogateway/MiniPacketTunnelIOGateway.cpp
+174 −86 lang/python2/message.py
+162 −82 lang/python3/message.py
+1 −1 message/Message.cpp
+1 −1 message/Message.h
+4 −7 platform/qt/QMessageTransceiverThread.cpp
+2 −3 platform/qt/qt_advanced_example/AdvancedQMessageTransceiverThread.cpp
+2 −6 platform/qt/qt_advanced_example/ThreadedInternalSession.cpp
+45 −24 reflector/AbstractReflectSession.cpp
+38 −1 reflector/AbstractReflectSession.h
+3 −15 reflector/DataNode.cpp
+1 −3 reflector/DumbReflectSession.cpp
+2 −6 reflector/FilterSessionFactory.cpp
+45 −37 reflector/ReflectServer.cpp
+2 −0 reflector/SignalHandlerSession.h
+4 −9 reflector/StorageReflectSession.cpp
+21 −24 regex/QueryFilter.cpp
+1 −23 server/Makefile
+1 −2 server/admin.cpp
+8 −23 server/muscled.cpp
+3 −9 support/MuscleSupport.h
+16 −34 syslog/SysLog.cpp
+1 −5 system/DetectNetworkConfigChangesSession.cpp
+2 −0 system/DetectNetworkConfigChangesSession.h
+1 −1 system/GlobalMemoryAllocator.h
+11 −26 system/MessageTransceiverThread.cpp
+162 −30 system/Thread.cpp
+56 −1 system/Thread.h
+1 −3 system/ThreadLocalStorage.h
+1 −2 system/ThreadPool.cpp
+2 −3 system/WaitCondition.h
+0 −20 test/Makefile
+1 −3 test/testserverthread.cpp
+3 −1 test/testtimeunitconversions.cpp
+2 −22 tools/Makefile
+6 −24 tools/daemonsitter.cpp
+4 −5 tools/hexterm.cpp
+3 −13 tools/muscleproxy.cpp
+29 −15 tools/snoopsharedmem.cpp
+1 −6 tools/udpproxy.cpp
+1 −1 util/ByteBuffer.cpp
+2 −10 util/Cloneable.h
+8 −2 util/MiscUtilityFunctions.cpp
+43 −14 util/NetworkUtilityFunctions.cpp
+12 −5 util/NetworkUtilityFunctions.h
+8 −13 util/ObjectPool.h
+1 −1 util/Queue.h
+3 −3 util/SocketMultiplexer.cpp
+5 −1 util/SocketMultiplexer.h
+2 −2 util/String.cpp
+47 −0 util/TimeUnitConversionFunctions.h
+118 −14 zlib/TarFileWriter.cpp
+3 −1 zlib/TarFileWriter.h
+2 −2 zlib/ZLibCodec.cpp
+6 −6 zlib/ZLibDataIO.cpp
+1 −5 zlib/ZLibUtilityFunctions.cpp
+2 −2 zlib/zlib/zconf.h
4 changes: 1 addition & 3 deletions tests/tree_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ class TestTreeZGPeerSession : public MessageTreeDatabasePeerSession
protected:
virtual IDatabaseObjectRef CreateDatabaseObject(uint32 whichDatabase)
{
IDatabaseObjectRef ret(newnothrow MessageTreeDatabaseObject(this, whichDatabase, GetDatabaseRootPath(whichDatabase)));
if (ret() == NULL) MWARN_OUT_OF_MEMORY;
return ret;
return IDatabaseObjectRef(new MessageTreeDatabaseObject(this, whichDatabase, GetDatabaseRootPath(whichDatabase)));
}

private:
Expand Down

0 comments on commit d6d46af

Please sign in to comment.