Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdApcThread.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 OdApcThread : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdApcThread(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdApcThread_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdApcThread obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public virtual void asyncProcCall(Globals.OdApcEntryPointVoidParamDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ ep, IntPtr /*SIMPLETYPE*/ parameter) {
43/*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin start*/
44 Globals.OdApcEntryPointVoidParamDelegateNative ep_inDelegate = null;
45 if (ep != null)
46 {
47 ep_inDelegate = (IntPtr _parameter) =>
48 {
49 ;
50 try
51 {
52 ep(_parameter);
53 }
54 finally
55 {
56 ;
57 }
58 };
59 }
60 IntPtr ep_ptr = (ep == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(ep_inDelegate);
61 Teigha.Core.DelegateHolder.Add(ep_inDelegate);
62 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin end*/
63 try {
64 GlobalsPINVOKE.OdApcThread_asyncProcCall__SWIG_0(swigCPtr, ep_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN csin*/ , parameter /*SIMPLETYPE*/);
66 } finally {
67//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN post csin*/
68 }
69 }
70
71 public virtual void asyncProcCall(Globals.OdApcEntryPointRxObjParamDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ ep, OdRxObject parameter) {
72/*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin start*/
73 Globals.OdApcEntryPointRxObjParamDelegateNative ep_inDelegate = null;
74 if (ep != null)
75 {
76 ep_inDelegate = (IntPtr parameter_) =>
77 {
78 ;
79 try
80 {
81 ep(OdMarshalHelper.PtrToObject<OdRxObject>(parameter_));
82 }
83 finally
84 {
85 ;
86 }
87 };
88 }
89 IntPtr ep_ptr = (ep == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(ep_inDelegate);
90 Teigha.Core.DelegateHolder.Add(ep_inDelegate);
91 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin end*/
92 try {
93 GlobalsPINVOKE.OdApcThread_asyncProcCall__SWIG_1(swigCPtr, ep_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN csin*/ , OdRxObject.getCPtr(parameter));
95 } finally {
96//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN post csin*/
97 }
98 }
99
100 public virtual void wait(bool bNoThrow) {
101 GlobalsPINVOKE.OdApcThread_wait__SWIG_0(swigCPtr, bNoThrow);
103 }
104
105 public virtual void wait() {
108 }
109
110 public virtual uint getId() {
111 uint ret = GlobalsPINVOKE.OdApcThread_getId(swigCPtr);
113 return ret;
114 }
115
116 public virtual bool hasException() {
117 bool ret = GlobalsPINVOKE.OdApcThread_hasException(swigCPtr);
119 return ret;
120 }
121
122 public virtual void processException(bool bReThrow, bool bClear) {
123 GlobalsPINVOKE.OdApcThread_processException__SWIG_0(swigCPtr, bReThrow, bClear);
125 }
126
127 public virtual void processException(bool bReThrow) {
130 }
131
132 public virtual void processException() {
135 }
136
137 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
138 string ret = GlobalsPINVOKE.OdApcThread_getRealClassName(ptr /*SIMPLETYPE*/);
140 return ret;
141 }
142
143}
144
145}
delegate void OdApcEntryPointVoidParamDelegate(IntPtr _parameter)
delegate void OdApcEntryPointRxObjParamDelegate(OdRxObject parameter_)
static global::System.Exception Retrieve()
static bool OdApcThread_hasException(HandleRef jarg1)
static void OdApcThread_asyncProcCall__SWIG_1(HandleRef jarg1, IntPtr jarg2, HandleRef jarg3)
static void OdApcThread_processException__SWIG_0(HandleRef jarg1, bool jarg2, bool jarg3)
static void OdApcThread_processException__SWIG_2(HandleRef jarg1)
static void OdApcThread_processException__SWIG_1(HandleRef jarg1, bool jarg2)
static void OdApcThread_wait__SWIG_1(HandleRef jarg1)
static uint OdApcThread_getId(HandleRef jarg1)
static void OdApcThread_wait__SWIG_0(HandleRef jarg1, bool jarg2)
static void delete_OdApcThread(HandleRef jarg1)
static string OdApcThread_getRealClassName(IntPtr jarg1)
static void OdApcThread_asyncProcCall__SWIG_0(HandleRef jarg1, IntPtr jarg2, IntPtr jarg3)
virtual void wait(bool bNoThrow)
Definition: OdApcThread.cs:100
virtual uint getId()
Definition: OdApcThread.cs:110
virtual void processException(bool bReThrow, bool bClear)
Definition: OdApcThread.cs:122
override void Dispose(bool disposing)
Definition: OdApcThread.cs:29
virtual bool hasException()
Definition: OdApcThread.cs:116
static string getRealClassName(IntPtr ptr)
Definition: OdApcThread.cs:137
virtual void asyncProcCall(Globals.OdApcEntryPointRxObjParamDelegate ep, OdRxObject parameter)
Definition: OdApcThread.cs:71
virtual void processException(bool bReThrow)
Definition: OdApcThread.cs:127
virtual void processException()
Definition: OdApcThread.cs:132
OdApcThread(IntPtr cPtr, bool cMemoryOwn)
Definition: OdApcThread.cs:20
virtual void wait()
Definition: OdApcThread.cs:105
static HandleRef getCPtr(OdApcThread obj)
Definition: OdApcThread.cs:25
virtual void asyncProcCall(Globals.OdApcEntryPointVoidParamDelegate ep, IntPtr parameter)
Definition: OdApcThread.cs:42
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26