Hazard
Pointer
constructor
_node
name
get
release
compare_
and_
exchange_
pointer
exchange_
hazard_
pointer
exchange_
pointer
get_
hazard_
pointer
get_
pointer
new
set_
default_
policy
set_
pointer
set_
release_
policy
set_
thread_
exit_
policy
GJS API Reference
Gee-0.8
Gee
HazardPointer
Class HazardPointer
Hierarchy
HazardPointer
Index
Constructors
constructor
Properties
_node
name
Methods
get
release
compare_
and_
exchange_
pointer
exchange_
hazard_
pointer
exchange_
pointer
get_
hazard_
pointer
get_
pointer
new
set_
default_
policy
set_
pointer
set_
release_
policy
set_
thread_
exit_
policy
Constructors
constructor
new
Hazard
Pointer
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, ptr
:
object
)
:
HazardPointer
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
ptr:
object
Returns
HazardPointer
Properties
_node
_node
:
any
Static
name
name
:
string
Methods
get
get
(
other_thread
:
boolean
)
:
object
Parameters
other_thread:
boolean
Returns
object
release
release
(
notify
:
GLib
.
DestroyNotify
)
:
void
Parameters
notify:
GLib
.
DestroyNotify
Returns
void
Static
compare_
and_
exchange_
pointer
compare_
and_
exchange_
pointer
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, aptr
:
object
, old_ptr
:
object
, _new_ptr
:
object
, mask
:
number
, old_mask
:
number
, new_mask
:
number
)
:
boolean
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
aptr:
object
old_ptr:
object
_new_ptr:
object
mask:
number
old_mask:
number
new_mask:
number
Returns
boolean
Static
exchange_
hazard_
pointer
exchange_
hazard_
pointer
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, aptr
:
object
, new_ptr
:
object
, mask
:
number
, new_mask
:
number
)
:
[
HazardPointer
,
number
]
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
aptr:
object
new_ptr:
object
mask:
number
new_mask:
number
Returns
[
HazardPointer
,
number
]
Static
exchange_
pointer
exchange_
pointer
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, aptr
:
object
, new_ptr
:
object
, mask
:
number
, new_mask
:
number
)
:
[
object
,
number
]
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
aptr:
object
new_ptr:
object
mask:
number
new_mask:
number
Returns
[
object
,
number
]
Static
get_
hazard_
pointer
get_
hazard_
pointer
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, aptr
:
object
, mask
:
number
)
:
[
HazardPointer
,
number
]
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
aptr:
object
mask:
number
Returns
[
HazardPointer
,
number
]
Static
get_
pointer
get_
pointer
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, aptr
:
object
, mask
:
number
)
:
[
object
,
number
]
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
aptr:
object
mask:
number
Returns
[
object
,
number
]
Static
new
new
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, ptr
:
object
)
:
HazardPointer
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
ptr:
object
Returns
HazardPointer
Static
set_
default_
policy
set_
default_
policy
(
policy
:
HazardPointerPolicy
)
:
void
Parameters
policy:
HazardPointerPolicy
Returns
void
Static
set_
pointer
set_
pointer
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, aptr
:
object
, new_ptr
:
object
, mask
:
number
, new_mask
:
number
)
:
void
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
aptr:
object
new_ptr:
object
mask:
number
new_mask:
number
Returns
void
Static
set_
release_
policy
set_
release_
policy
(
policy
:
HazardPointerReleasePolicy
)
:
boolean
Parameters
policy:
HazardPointerReleasePolicy
Returns
boolean
Static
set_
thread_
exit_
policy
set_
thread_
exit_
policy
(
policy
:
HazardPointerPolicy
)
:
void
Parameters
policy:
HazardPointerPolicy
Returns
void
Hazard
Pointer
constructor
_node
name
get
release
compare_
and_
exchange_
pointer
exchange_
hazard_
pointer
exchange_
pointer
get_
hazard_
pointer
get_
pointer
new
set_
default_
policy
set_
pointer
set_
release_
policy
set_
thread_
exit_
policy
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHZWVfMF84LkdlZS5IYXphcmRQb2ludGVyLmh0bWwjY29uc3RydWN0b3IiLCJuYW1lIjoiY29uc3RydWN0b3IiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHZWVfMF84LkdlZS5IYXphcmRQb2ludGVyLmh0bWwjX25vZGUiLCJuYW1lIjoiX25vZGUiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lc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