| 81 | } |
| 82 | |
| 83 | inline void wait_for_file(const ACE_TCHAR* topic, const ACE_TString& suffix) |
| 84 | { |
| 85 | FILE* file = 0; |
| 86 | const ACE_TString filename = topic + suffix; |
| 87 | |
| 88 | while (!file) { |
| 89 | ACE_OS::sleep(small_time); |
| 90 | file = ACE_OS::fopen((synch_dir + filename).c_str(), ACE_TEXT("r")); |
| 91 | } |
| 92 | |
| 93 | ACE_OS::fclose(file); |
| 94 | } |