From 673871d446c34d82e86f513839f07f281503ffcb Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 18 Dec 2010 13:04:38 -0500 Subject: [PATCH] Move -[DebuggerConnection send:] to the private interface because it isn't threadsafe. --- Source/DebuggerConnection.h | 2 -- Source/DebuggerConnection.m | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/DebuggerConnection.h b/Source/DebuggerConnection.h index 01c2bb1..b05c366 100644 --- a/Source/DebuggerConnection.h +++ b/Source/DebuggerConnection.h @@ -88,8 +88,6 @@ - (void)connect; - (void)close; -- (void)send:(NSString*)command; - // This sends the given command format to the debugger. This method is thread // safe and schedules the request on the |runLoop_|. - (NSNumber*)sendCommandWithFormat:(NSString*)format, ...; diff --git a/Source/DebuggerConnection.m b/Source/DebuggerConnection.m index acf2425..a34cbb2 100644 --- a/Source/DebuggerConnection.m +++ b/Source/DebuggerConnection.m @@ -40,6 +40,8 @@ - (void)socketDisconnected; - (void)readStreamHasData; +// These methods MUST be called on the network thread as they are not threadsafe. +- (void)send:(NSString*)command; - (void)performSend:(NSString*)command; - (void)sendQueuedWrites; -- 2.43.5