summaryrefslogtreecommitdiffstats
path: root/Liaison/NSFileHandleExtensions.m
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-14 21:45:08 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-04-14 21:45:08 -0400
commit17349a5e426dc7acf1216a3767a22f69974cbca0 (patch)
tree20029d02f07ab6257cccec36d34fb312f796e1d1 /Liaison/NSFileHandleExtensions.m
downloadliaison-17349a5e426dc7acf1216a3767a22f69974cbca0.tar.gz
liaison-17349a5e426dc7acf1216a3767a22f69974cbca0.zip
Initial commit.
Diffstat (limited to 'Liaison/NSFileHandleExtensions.m')
-rw-r--r--Liaison/NSFileHandleExtensions.m24
1 files changed, 24 insertions, 0 deletions
diff --git a/Liaison/NSFileHandleExtensions.m b/Liaison/NSFileHandleExtensions.m
new file mode 100644
index 0000000..fa65189
--- /dev/null
+++ b/Liaison/NSFileHandleExtensions.m
@@ -0,0 +1,24 @@
+//
+// NSFileHandleExtensions.m
+// Liaison
+//
+// Created by Brian Cully on Sun May 25 2003.
+// Copyright (c) 2003 Brian Cully. All rights reserved.
+//
+
+#import "NSFileHandleExtensions.h"
+
+#import "WriterThreadPool.h"
+
+@implementation NSFileHandleExtensions
+- (void)dealloc
+{
+ [[WriterThreadPool sharedPool] killThreadFor: self];
+ [super dealloc];
+}
+
+- (void)writeDataInBackground: (NSData *)someData
+{
+ [[WriterThreadPool sharedPool] writeData: someData to: self];
+}
+@end