Add missing thread include to ctimepoint (#6)

This resolves the following error compiling on Ubuntu 22.04:

ctimepoint.cpp: In static member function ‘static void CTimePoint::TaskSleepFor(uint)’:
ctimepoint.cpp:52:27: error: ‘sleep_for’ is not a member of ‘std::this_thread’
   52 |         std::this_thread::sleep_for(timespan);
      |                           ^~~~~~~~~

$ gcc -v
<<snip>>
gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04

Co-authored-by: Mark Landis (N6AZX) <n6azx@fastmail.com>
master
mark 3 years ago committed by GitHub
parent 5aee5f7b6d
commit 799ebcec91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,6 +25,8 @@
#include "main.h"
#include "ctimepoint.h"
#include <thread>
////////////////////////////////////////////////////////////////////////////////////////
// constructor

Loading…
Cancel
Save

Powered by TurnKey Linux.