Gitiles
Code Review
Sign In
review.jami.net
/
jami-client-android
/
94f06ba4760c8a71bb83561914f9b0d355b390f7
/
.
/
jni
/
commoncpp2-android
/
sources
/
tests
/
forever.cpp
blob: 47871df32568b41e9f502267214014596cf82ebf [
file
] [
log
] [
blame
]
#include
<
cc
++/
thread
.
h
>
using
namespace
ost
;
class
Foo
:
public
Thread
{
void
run
()
{
exit
();
};
};
int
main
()
{
Foo
*
f
=
new
Foo
();
f
->
start
();
// Endless!? why?
do
{
Thread
::
sleep
(
1000
);
}
while
(
f
->
isRunning
()
);
}