C# Class SharpUV.Loop

Inheritance: IDisposable
Exibir arquivo Open project: gigi81/sharpuv Class Usage Examples

Private Properties

Property Type Description
WorkCompleted void

Public Methods

Method Description
CheckError ( int code ) : void
Dispose ( ) : void

Dispose the object freeing unmanaged resources allocated

DumpAllocs ( ) : void
Loop ( ) : System
QueueWork ( System.Action run, System.Action after = null ) : void
Run ( ) : void

This function starts the event loop. It blocks until the reference count of the loop drops to zero.

RunOnce ( ) : void

This function polls for new events without blocking

Protected Methods

Method Description
Dispose ( bool disposing ) : void
Loop ( IntPtr handle ) : System

Private Methods

Method Description
WorkCompleted ( LoopWork work ) : void

Method Details

CheckError() public method

public CheckError ( int code ) : void
code int
return void

Dispose() public method

Dispose the object freeing unmanaged resources allocated
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DumpAllocs() public method

public DumpAllocs ( ) : void
return void

Loop() public method

public Loop ( ) : System
return System

Loop() protected method

protected Loop ( IntPtr handle ) : System
handle System.IntPtr
return System

QueueWork() public method

public QueueWork ( System.Action run, System.Action after = null ) : void
run System.Action
after System.Action
return void

Run() public method

This function starts the event loop. It blocks until the reference count of the loop drops to zero.
public Run ( ) : void
return void

RunOnce() public method

This function polls for new events without blocking
public RunOnce ( ) : void
return void