Skip to content

Commit 7478704

Browse files
committed
Add TODO about sleep(...)
1 parent c482dc7 commit 7478704

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/pipes/collect-required-and-classes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CollectRequiredPass final : public FunctionPassBase {
3131
// avoid a race condition, when we try to search for RpcFunction.php and other built-in classes that are visible from index.php
3232
// (if such files exist, extra src_xxx$called variables will be created: unstable codegeneration)
3333
while (!G->get_functions_txt_parsed()) {
34-
usleep(100000);
34+
usleep(100000); // TODO good place for condvar
3535
}
3636

3737
if (G->get_class(class_name)) {

0 commit comments

Comments
 (0)