mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
chore: import fiber related primitives under dfly namespace (#1012)
This change removes most mentions of boost::fibers or util::fibers_ext. Instead it introduces "core/fibers.h" file that incorporates most of the primitives under dfly namespace. This is done in preparation to switching from Boost.Fibers to helio native fibers. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
1aab8a6934
commit
c271e13176
40 changed files with 160 additions and 139 deletions
|
@ -12,9 +12,9 @@
|
|||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
#include "core/fibers.h"
|
||||
#include "facade/facade_types.h"
|
||||
#include "facade/op_status.h"
|
||||
#include "util/fibers/fiber.h"
|
||||
|
||||
namespace dfly {
|
||||
|
||||
|
@ -215,7 +215,7 @@ template <typename T> struct AggregateValue {
|
|||
}
|
||||
|
||||
private:
|
||||
util::fibers_ext::Mutex mu_{};
|
||||
Mutex mu_{};
|
||||
T current_{};
|
||||
};
|
||||
|
||||
|
@ -319,10 +319,10 @@ class Context : protected Cancellation {
|
|||
|
||||
private:
|
||||
GenericError err_;
|
||||
util::fibers_ext::Mutex mu_;
|
||||
Mutex mu_;
|
||||
|
||||
ErrHandler err_handler_;
|
||||
::util::fibers_ext::Fiber err_handler_fb_;
|
||||
Fiber err_handler_fb_;
|
||||
};
|
||||
|
||||
struct ScanOpts {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue