diff options
Diffstat (limited to 'tests/MT_NoUpcall_Client_Leader/police.cpp')
-rw-r--r-- | tests/MT_NoUpcall_Client_Leader/police.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/MT_NoUpcall_Client_Leader/police.cpp b/tests/MT_NoUpcall_Client_Leader/police.cpp new file mode 100644 index 00000000000..17eb4ea649e --- /dev/null +++ b/tests/MT_NoUpcall_Client_Leader/police.cpp @@ -0,0 +1,13 @@ +// $Id$ + +#include "ace/OS_NS_sys_stat.h" +#include "ace/OS_NS_unistd.h" + +void poll (const char* filename) +{ + ACE_stat st; + for (int r=1; r != 0; r = ACE_OS::stat (filename, &st)) + { + ACE_OS::sleep (1); + } +} |