Extended .NET SDK Documentation
2025 SP0
Loading...
Searching...
No Matches
SDK
DotNet
dd_inc
TD_SwigCore_TEMP
TargetLangSources
OdMutexPool.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
11
namespace
Teigha.Core
{
12
13
using
System;
14
using
System.Runtime.InteropServices;
15
16
public
class
OdMutexPool
: 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
OdMutexPool
(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
(
OdMutexPool
obj) {
27
return
(obj ==
null
) ?
new
HandleRef(
null
, IntPtr.Zero) : obj.swigCPtr;
28
}
29
30
~OdMutexPool
() {
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
.
delete_OdMutexPool
(swigCPtr);
45
}
46
swigCPtr =
new
global::System.Runtime.InteropServices.HandleRef(
null
, global::System.IntPtr.Zero);
47
}
48
}
49
}
50
51
public
OdMutexPool
() : this(
GlobalsPINVOKE
.new_OdMutexPool(), true) {
52
if
(
GlobalsPINVOKE
.
SWIGPendingException
.
Pending
)
throw
GlobalsPINVOKE
.
SWIGPendingException
.
Retrieve
();
53
}
54
55
public
void
initialize
() {
56
GlobalsPINVOKE
.
OdMutexPool_initialize
(swigCPtr);
57
if
(
GlobalsPINVOKE
.
SWIGPendingException
.
Pending
)
throw
GlobalsPINVOKE
.
SWIGPendingException
.
Retrieve
();
58
}
59
60
public
OdMutex
get
(IntPtr id) {
61
global::System.IntPtr cPtr =
GlobalsPINVOKE
.
OdMutexPool_get
(swigCPtr,
id
/*SIMPLETYPE*/
);
62
OdMutex
ret = (cPtr == global::System.IntPtr.Zero) ?
null
:
new
OdMutex
(cPtr,
false
);
63
if
(
GlobalsPINVOKE
.
SWIGPendingException
.
Pending
)
throw
GlobalsPINVOKE
.
SWIGPendingException
.
Retrieve
();
64
return
ret;
65
}
66
67
public
void
clear
() {
68
GlobalsPINVOKE
.
OdMutexPool_clear
(swigCPtr);
69
if
(
GlobalsPINVOKE
.
SWIGPendingException
.
Pending
)
throw
GlobalsPINVOKE
.
SWIGPendingException
.
Retrieve
();
70
}
71
72
}
73
74
}
Teigha.Core.GlobalsPINVOKE.SWIGPendingException
Definition
GlobalsPINVOKE.cs:130
Teigha.Core.GlobalsPINVOKE.SWIGPendingException.Pending
static bool Pending
Definition
GlobalsPINVOKE.cs:136
Teigha.Core.GlobalsPINVOKE.SWIGPendingException.Retrieve
static global::System.Exception Retrieve()
Definition
GlobalsPINVOKE.cs:155
Teigha.Core.GlobalsPINVOKE
Definition
GlobalsPINVOKE.cs:16
Teigha.Core.GlobalsPINVOKE.OdMutexPool_clear
static void OdMutexPool_clear(global::System.Runtime.InteropServices.HandleRef jarg1)
Teigha.Core.GlobalsPINVOKE.OdMutexPool_get
static global::System.IntPtr OdMutexPool_get(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
Teigha.Core.GlobalsPINVOKE.delete_OdMutexPool
static void delete_OdMutexPool(global::System.Runtime.InteropServices.HandleRef jarg1)
Teigha.Core.GlobalsPINVOKE.OdMutexPool_initialize
static void OdMutexPool_initialize(global::System.Runtime.InteropServices.HandleRef jarg1)
Teigha.Core.OdMutex
Definition
OdMutex.cs:16
Teigha.Core.OdMutexPool
Definition
OdMutexPool.cs:16
Teigha.Core.OdMutexPool.swigCMemOwn
bool swigCMemOwn
Definition
OdMutexPool.cs:19
Teigha.Core.OdMutexPool.Dispose
virtual void Dispose(bool disposing)
Definition
OdMutexPool.cs:39
Teigha.Core.OdMutexPool.OdMutexPool
OdMutexPool()
Definition
OdMutexPool.cs:51
Teigha.Core.OdMutexPool.OdMutexPool
OdMutexPool(IntPtr cPtr, bool cMemoryOwn)
Definition
OdMutexPool.cs:21
Teigha.Core.OdMutexPool.clear
void clear()
Definition
OdMutexPool.cs:67
Teigha.Core.OdMutexPool.Dispose
void Dispose()
Definition
OdMutexPool.cs:34
Teigha.Core.OdMutexPool.initialize
void initialize()
Definition
OdMutexPool.cs:55
Teigha.Core.OdMutexPool.getCPtr
static HandleRef getCPtr(OdMutexPool obj)
Definition
OdMutexPool.cs:26
Teigha.Core
Definition
AbstractClipBoundaryArray.cs:11
Generated on Mon Mar 4 2024 12:45:34