MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / wait_for_file

Function wait_for_file

tests/DCPS/ManyTopicMultiProcess/common.h:83–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83inline 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}

Callers 2

ACE_TMAINFunction · 0.85
ACE_TMAINFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected