μHAL (v2.8.17)
Part of the IPbus software repository
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
z
Typedefs
Enumerations
Enumerator
b
c
d
e
f
h
i
m
n
r
s
u
v
w
x
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
_
a
b
c
d
f
h
i
k
m
o
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
f
n
t
v
Related Functions
c
d
g
h
i
l
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
r
s
t
v
w
x
Enumerations
Enumerator
a
c
e
i
l
n
o
p
x
y
Macros
a
b
c
d
e
g
m
n
p
s
t
u
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
python
pybind11-python2
tests
test_thread.py
Go to the documentation of this file.
1
# -*- coding: utf-8 -*-
2
3
import
threading
4
5
from
pybind11_tests
import
thread
as
m
6
7
8
class
Thread
(threading.Thread):
9
def
__init__
(self, fn):
10
super(Thread, self).
__init__
()
11
self.
fn
= fn
12
self.
e
=
None
13
14
def
run
(self):
15
try
:
16
for
i
in
range(10):
17
self.
fn
(i, i)
18
except
Exception
as
e:
19
self.
e
= e
20
21
def
join(self):
22
super(Thread, self).join()
23
if
self.
e
:
24
raise
self.
e
25
26
27
def
test_implicit_conversion
():
28
a =
Thread
(m.test)
29
b =
Thread
(m.test)
30
c =
Thread
(m.test)
31
for
x
in
[a, b, c]:
32
x.start()
33
for
x
in
[c, b, a]:
34
x.join()
35
36
37
def
test_implicit_conversion_no_gil
():
38
a =
Thread
(m.test_no_gil)
39
b =
Thread
(m.test_no_gil)
40
c =
Thread
(m.test_no_gil)
41
for
x
in
[a, b, c]:
42
x.start()
43
for
x
in
[c, b, a]:
44
x.join()
test_thread.Thread
Definition:
test_thread.py:8
test_thread.Thread.run
def run(self)
Definition:
test_thread.py:14
test_thread.Thread.fn
fn
Definition:
test_thread.py:11
test_thread.Thread.e
e
Definition:
test_thread.py:12
test_thread.Thread.__init__
def __init__(self, fn)
Definition:
test_thread.py:9
test_thread.test_implicit_conversion
def test_implicit_conversion()
Definition:
test_thread.py:27
test_thread.test_implicit_conversion_no_gil
def test_implicit_conversion_no_gil()
Definition:
test_thread.py:37
Generated on Sat Mar 15 2025 17:14:10 for μHAL (v2.8.17) by
1.9.5