mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Move threading classes to zeek namespaces
This commit is contained in:
parent
f310795d79
commit
1262109e5a
42 changed files with 299 additions and 210 deletions
|
@ -1,14 +1,16 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <iosfwd>
|
||||
#include <thread>
|
||||
|
||||
namespace threading {
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Manager, zeek, threading);
|
||||
|
||||
class Manager;
|
||||
namespace zeek::threading {
|
||||
|
||||
/**
|
||||
* Base class for all threads.
|
||||
|
@ -211,4 +213,8 @@ private:
|
|||
static uint64_t thread_counter;
|
||||
};
|
||||
|
||||
} // namespace zeek::threading
|
||||
|
||||
namespace threading {
|
||||
using BasicThread [[deprecated("Remove in v4.1. Use zeek::threading::BasicThread.")]] = zeek::threading::BasicThread;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue