//
//  KMWorkerEmulator.m
//  BathyScaphe
//
//  Created by Hori,Masaki on 11/07/18.
//  Copyright 2011 masakih. All rights reserved.
//

#import "KMWorkerEmulator.h"

#import "CMRTaskManager.h"

@implementation KMWorkerEmulator
@synthesize layoutDummy = _layoutDummy;

- (id)init
{
	self = [super init];
	if(self) {
		queue = [[NSOperationQueue alloc] init];
	}
	return self;
}
- (void)dealloc
{
	[queue release];
	
	[super dealloc];
}
- (void)push:(id)object
{
	NSInvocationOperation *ope = [[NSInvocationOperation alloc] initWithTarget:object
																	  selector:@selector(executeWithLayout:)
																		object:self.layoutDummy];
	[queue addOperation:ope];
	[ope release];
}
@end
