Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
ThreadsCounterReactor.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class ThreadsCounterReactor : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public ThreadsCounterReactor(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(ThreadsCounterReactor obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
44 GlobalsPINVOKE.deletePD_ThreadsCounterReactor(swigCPtr); // PROTECTED_DTOR_CSHARP
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public virtual void increase(uint arg0, UInt32[] /*SIMPLE_ARRAY*/ arg1, uint arg2) {
52 GlobalsPINVOKE.ThreadsCounterReactor_increase(swigCPtr, arg0, Teigha.Core.Helpers.MarshalUInt32FixedArray(arg1), arg2);
54 }
55
56 public virtual void decrease(uint arg0, UInt32[] /*SIMPLE_ARRAY*/ arg1, uint arg2) {
57 GlobalsPINVOKE.ThreadsCounterReactor_decrease(swigCPtr, arg0, Teigha.Core.Helpers.MarshalUInt32FixedArray(arg1), arg2);
59 }
60
61 public virtual void startThread(uint arg0, uint arg1) {
64 }
65
66 public virtual void stopThread(uint arg0, uint arg1) {
69 }
70
71}
72
73}
static global::System.Exception Retrieve()
static void ThreadsCounterReactor_decrease(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, IntPtr jarg3, uint jarg4)
static void ThreadsCounterReactor_stopThread(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, uint jarg3)
static IntPtr deletePD_ThreadsCounterReactor(HandleRef jarg1)
static void ThreadsCounterReactor_startThread(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, uint jarg3)
static void ThreadsCounterReactor_increase(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, IntPtr jarg3, uint jarg4)
virtual void startThread(uint arg0, uint arg1)
virtual void increase(uint arg0, UInt32[] arg1, uint arg2)
virtual void decrease(uint arg0, UInt32[] arg1, uint arg2)
ThreadsCounterReactor(IntPtr cPtr, bool cMemoryOwn)
virtual void Dispose(bool disposing)
static HandleRef getCPtr(ThreadsCounterReactor obj)
virtual void stopThread(uint arg0, uint arg1)