C# 클래스 Java.Util.Concurrent.ThreadPoolExecutor.Worker

Class Worker mainly maintains interrupt control state for threads running tasks, along with other minor bookkeeping. This class opportunistically extends ReentrantLock to simplify acquiring and releasing a lock surrounding each task execution. This protects against interrupts that are intended to wake up a worker thread waiting for a task from instead interrupting a task being run.
상속: Java.Util.Concurrent.Locks.ReentrantLock, IRunnable
파일 보기 프로젝트 열기: Elders/Hystrix.NET

보호된 프로퍼티들

프로퍼티 타입 설명
CompletedTasks uint
FirstTask IRunnable
Thread Thread

공개 메소드들

메소드 설명
Run ( ) : void

Runs the associated task, signalling the ThreadPoolExecutor when exiting.

비공개 메소드들

메소드 설명
Worker ( ThreadPoolExecutor parentThreadPoolExecutor, IRunnable firstTask ) : System

Default Constructor

메소드 상세

Run() 공개 메소드

Runs the associated task, signalling the ThreadPoolExecutor when exiting.
public Run ( ) : void
리턴 void

프로퍼티 상세

CompletedTasks 보호되어 있는 프로퍼티

Per thread completed task counter; accumulated into completedTaskCount upon termination.
protected uint CompletedTasks
리턴 uint

FirstTask 보호되어 있는 프로퍼티

Initial task to run before entering run loop
protected IRunnable FirstTask
리턴 IRunnable

Thread 보호되어 있는 프로퍼티

Thread this worker is running in. Acts as a final field, but cannot be set until thread is created.
protected Thread Thread
리턴 Thread