Browse Subversion Repository
Annotation of /XspfManager/HMChannel.h
Parent Directory
| Revision Log
Revision 80 -
( hide annotations)
( download)
( as text)
Sun Nov 15 15:26:36 2009 UTC
(14 years, 5 months ago)
by masaki
File MIME type: text/x-chdr
File size: 676 byte(s)
[New] 未消化のリクエスト数を記憶し返すメソッドを追加。
| 1 |
masaki |
2 |
// |
| 2 |
|
|
// HMChannel.h |
| 3 |
|
|
// OldMacViewer |
| 4 |
|
|
// |
| 5 |
|
|
// Created by Hori,Masaki on Fri Sep 05 2003. |
| 6 |
|
|
// Copyright (c) 2003 __MyCompanyName__. All rights reserved. |
| 7 |
|
|
// |
| 8 |
|
|
|
| 9 |
|
|
#import <Foundation/Foundation.h> |
| 10 |
|
|
|
| 11 |
|
|
#import "HMWorkerProtocols.h" |
| 12 |
|
|
|
| 13 |
|
|
@class HMQueue; |
| 14 |
|
|
|
| 15 |
|
|
@interface HMChannel : NSObject <HMChannel> |
| 16 |
|
|
{ |
| 17 |
|
|
HMQueue* _queue; |
| 18 |
|
|
NSMutableArray* _workers; |
| 19 |
masaki |
80 |
|
| 20 |
|
|
NSInteger _requestNum; |
| 21 |
masaki |
2 |
} |
| 22 |
|
|
|
| 23 |
|
|
-(id)initWithWorkerNum:(int)num; |
| 24 |
|
|
|
| 25 |
masaki |
80 |
// called from HMWorker. take care thread safty. |
| 26 |
|
|
- (oneway void)finishRequest:(id <HMRequest>)request; |
| 27 |
masaki |
2 |
|
| 28 |
masaki |
80 |
- (NSInteger)requestNum; |
| 29 |
|
|
|
| 30 |
masaki |
2 |
-(void)putRequest:(id <HMRequest>)aRequest; |
| 31 |
|
|
-(id <HMRequest>)takeRequest; |
| 32 |
|
|
-(void)terminateAll; |
| 33 |
|
|
-(void)terminateRequet:(id <HMRequest>)aRequest; |
| 34 |
|
|
|
| 35 |
|
|
@end |
|