MCPcopy Create free account
hub / github.com/boostorg/build / close_alerts

Function close_alerts

v2/engine/execnt.c:843–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841
842
843static void close_alerts()
844{
845 /* We only attempt this every 5 seconds or so, because it is not a cheap
846 * operation, and we will catch the alerts eventually. This check uses
847 * floats as some compilers define CLOCKS_PER_SEC as a float or double.
848 */
849 if ( ( (float)clock() / (float)( CLOCKS_PER_SEC * 5 ) ) < ( 1.0 / 5.0 ) )
850 {
851 int i;
852 for ( i = 0; i < globs.jobs; ++i )
853 if ( cmdtab[ i ].pi.hProcess )
854 close_alert( &cmdtab[ i ].pi );
855 }
856}
857
858
859/*

Callers 1

exec_waitFunction · 0.85

Calls 1

close_alertFunction · 0.85

Tested by

no test coverage detected