repo.or.cz
/
ACE_TAO.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git]
/
TAO
/
tests
/
MT_NoUpcall_Client_Leader
/
police.cpp
blob
0c198804856b9555ac3545b625c3496cfa83c23e
1
#include
"ace/OS_NS_sys_stat.h"
2
#include
"ace/OS_NS_unistd.h"
3
4
void
poll
(
const char
*
filename
)
5
{
6
int
r
;
7
do
8
{
9
ACE_stat st
;
10
r
=
ACE_OS
::
stat
(
filename
, &
st
);
11
ACE_OS
::
sleep
(
1
);
// Allows time between waiting scans and for contents to be written
12
}
while
(
r
!=
0
);
13
}