title: C++ program times out on ODE
body: <p>I have written a program that times out on both coliru as well as on <a href="https://ideone.com/zsQBQJ" rel="nofollow noreferrer">ideone</a>.</p>
  
  <p>The program calls <strong>call_once</strong>() in a multi-threaded environment:
  -- <strong>EDIT</strong> -- : <strong>source code added</strong></p>
  
  <pre><code>** 
      call_once_xcp.cpp
  
      Demonstrate that if the first call to the call_once() function
      is unsuccessful, it will invoke a subsequent functionality.
  
  **/
  
  #include &lt;mutex&gt;        /// once_flag, call_once()
  #include &lt;thread&gt;       /// thread
  #include &lt;exception&gt;        /// runtime_error
  #include &lt;iostream&gt;     /// cout
  
  using namespace std;
  
  once_flag of;
  
  /// declarations ...
  void func_call_xcp();   /// will call func_xcp()
  void func_xcp();    /// will throw
  void func_call_OK();    /// will call func_OK()
  void func_OK();     /// won't throw
  
  
  int main()
  {
     thread t1 {func_call_xcp};
     t1.join();
  
     thread t2 {func_call_OK};
     t2.join();
  
     thread t3 {func_call_OK};
     t3.join();
  }
  
  
  /// will call func_xcp()
  void func_call_xcp()
  {
     try
     {
        call_once(of, func_xcp);
     }
     catch (exception&amp; e)
     {
        cout &lt;&lt; "exception: " &lt;&lt; e.what()
             &lt;&lt; endl;
     }
  }
  
  
  /// will call func_OK()
  void func_call_OK()
  {
     call_once(of, func_OK);
  }
  
  
  void func_xcp()     /// will throw
  {
     cout &lt;&lt; "** func_xcp()" &lt;&lt; endl;
  
     throw runtime_error 
         {"error in func_xcp()"};
  }
  
  
  void func_OK()      /// won't throw
  {
     cout &lt;&lt; "** func_OK()" &lt;&lt; endl;
  }
  </code></pre>
  
  <p><br/>The message is:</p>
  
  <pre><code>Time limit exceeded #stdin #stdout 5s 4364KB 
  </code></pre>
  
  <p>Is there any way to <em>increase</em> the time limit on either of these <strong>ODE</strong>s (online development environments) or on any other ODE?</p>