Szerkesztés

Megosztás a következőn keresztül:


DispatchSource.MemoryPressure Constructors

Definition

Overloads

DispatchSource.MemoryPressure(IntPtr)
DispatchSource.MemoryPressure(MemoryPressureFlags, DispatchQueue)
DispatchSource.MemoryPressure(IntPtr, Boolean)

DispatchSource.MemoryPressure(IntPtr)

public MemoryPressure (IntPtr handle);
new CoreFoundation.DispatchSource.MemoryPressure : nativeint -> CoreFoundation.DispatchSource.MemoryPressure

Parameters

handle
IntPtr

nativeint

Applies to

DispatchSource.MemoryPressure(MemoryPressureFlags, DispatchQueue)

public MemoryPressure (CoreFoundation.MemoryPressureFlags monitorFlags = CoreFoundation.MemoryPressureFlags.Normal | CoreFoundation.MemoryPressureFlags.Warn, CoreFoundation.DispatchQueue queue = null);
new CoreFoundation.DispatchSource.MemoryPressure : CoreFoundation.MemoryPressureFlags * CoreFoundation.DispatchQueue -> CoreFoundation.DispatchSource.MemoryPressure

Parameters

monitorFlags
MemoryPressureFlags

Memory pressure flags to monitor.   The default just monitors memory pressure warnings and the return to normal.

queue
DispatchQueue

The target queue for this dispatch source object.   Pass null to use the default target queue (the default priority global concurrent queue).

Remarks

Applies to

DispatchSource.MemoryPressure(IntPtr, Boolean)

public MemoryPressure (IntPtr handle, bool owns);
new CoreFoundation.DispatchSource.MemoryPressure : nativeint * bool -> CoreFoundation.DispatchSource.MemoryPressure

Parameters

handle
IntPtr

nativeint

owns
Boolean

Applies to