Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdApcQueue.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 OdApcQueue : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdApcQueue(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdApcQueue_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdApcQueue 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 OdRxThreadPoolService framework() {
43 OdRxThreadPoolService ret = (OdRxThreadPoolService)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxThreadPoolService),GlobalsPINVOKE.OdApcQueue_framework(swigCPtr),false); /*createInt 3_1*/
44
46 return ret;
47}
48
49 public virtual void setAtomPoolRef(OdApcObjectPool pAtomPool) {
52 }
53
54 public virtual void addEntryPoint(OdApcAtom pRecipient, OdRxObject pMessage) {
57 }
58
59 public virtual void addEntryPoint(OdApcAtom pRecipient) {
62 }
63
64 public virtual void addEntryPoint(OdApcAtom pRecipient, IntPtr /*SIMPLETYPE*/ pMessage) {
65 GlobalsPINVOKE.OdApcQueue_addEntryPoint__SWIG_2(swigCPtr, OdApcAtom.getCPtr(pRecipient), pMessage /*SIMPLETYPE*/);
67 }
68
69 public virtual void wait() {
72 }
73
74 public virtual void executeMainThreadAction(Globals.MainThreadFuncDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ mtFunc, IntPtr /*SIMPLETYPE*/ pArg) {
75/*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin start*/
76 Globals.MainThreadFuncDelegateNative mtFunc_inDelegate = null;
77 if (mtFunc != null)
78 {
79 mtFunc_inDelegate = (IntPtr arg1) =>
80 {
81 ;
82 try
83 {
84 mtFunc(arg1);
85 }
86 finally
87 {
88 ;
89 }
90 };
91 }
92 IntPtr mtFunc_ptr = (mtFunc == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(mtFunc_inDelegate);
93 Teigha.Core.DelegateHolder.Add(mtFunc_inDelegate);
94 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin end*/
95 try {
96 GlobalsPINVOKE.OdApcQueue_executeMainThreadAction(swigCPtr, mtFunc_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN csin*/ , pArg /*SIMPLETYPE*/);
98 } finally {
99//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN post csin*/
100 }
101 }
102
103 public virtual int numThreads() {
104 int ret = GlobalsPINVOKE.OdApcQueue_numThreads(swigCPtr);
106 return ret;
107 }
108
109 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
110 string ret = GlobalsPINVOKE.OdApcQueue_getRealClassName(ptr /*SIMPLETYPE*/);
112 return ret;
113 }
114
115}
116
117}
delegate void MainThreadFuncDelegate(IntPtr arg1)
static global::System.Exception Retrieve()
static void OdApcQueue_addEntryPoint__SWIG_1(HandleRef jarg1, HandleRef jarg2)
static void OdApcQueue_addEntryPoint__SWIG_2(HandleRef jarg1, HandleRef jarg2, IntPtr jarg3)
static string OdApcQueue_getRealClassName(IntPtr jarg1)
static void OdApcQueue_executeMainThreadAction(HandleRef jarg1, IntPtr jarg2, IntPtr jarg3)
static void OdApcQueue_setAtomPoolRef(HandleRef jarg1, HandleRef jarg2)
static int OdApcQueue_numThreads(HandleRef jarg1)
static void delete_OdApcQueue(HandleRef jarg1)
static IntPtr OdApcQueue_framework(HandleRef jarg1)
static void OdApcQueue_wait(HandleRef jarg1)
static void OdApcQueue_addEntryPoint__SWIG_0(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3)
static HandleRef getCPtr(OdApcAtom obj)
Definition: OdApcAtom.cs:25
static HandleRef getCPtr(OdApcObjectPool obj)
virtual int numThreads()
Definition: OdApcQueue.cs:103
OdApcQueue(IntPtr cPtr, bool cMemoryOwn)
Definition: OdApcQueue.cs:20
static HandleRef getCPtr(OdApcQueue obj)
Definition: OdApcQueue.cs:25
static string getRealClassName(IntPtr ptr)
Definition: OdApcQueue.cs:109
override void Dispose(bool disposing)
Definition: OdApcQueue.cs:29
virtual void executeMainThreadAction(Globals.MainThreadFuncDelegate mtFunc, IntPtr pArg)
Definition: OdApcQueue.cs:74
virtual void addEntryPoint(OdApcAtom pRecipient)
Definition: OdApcQueue.cs:59
virtual void addEntryPoint(OdApcAtom pRecipient, OdRxObject pMessage)
Definition: OdApcQueue.cs:54
virtual void addEntryPoint(OdApcAtom pRecipient, IntPtr pMessage)
Definition: OdApcQueue.cs:64
virtual void setAtomPoolRef(OdApcObjectPool pAtomPool)
Definition: OdApcQueue.cs:49
virtual OdRxThreadPoolService framework()
Definition: OdApcQueue.cs:42
virtual void wait()
Definition: OdApcQueue.cs:69
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26