Sign in
fuchsia
/
third_party
/
swig
/
2824b0cbb66e715490e1ef13250bd675d87b32d9
/
.
/
trunk
/
Examples
/
test-suite
/
python
/
director_thread_runme.py
blob: 15a12ab800fe82884c4175c548c06af7050cbe93 [
file
] [
log
] [
blame
]
from
director_thread
import
Foo
class
Derived
(
Foo
)
:
def
__init__
(
self
):
Foo
.
__init__
(
self
)
def
do_foo
(
self
):
self
.
val
=
self
.
val
-
1
d
=
Derived
()
d
.
run
()
if
d
.
val
>=
0
:
print
d
.
val
raise
RuntimeError
d
.
stop
()