summaryrefslogtreecommitdiffstats
path: root/Liaison/NSFileHandleExtensions.m
blob: fa65189ee0a61a75ef73e2878289736ea1f1ef63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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