Skip to content

Commit

Permalink
Add PREPEEK and PROCESS constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Bettner committed May 24, 2023
1 parent 1ee02a1 commit e94300a
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion BedrockCommand.h
Original file line number Diff line number Diff line change
@@ -16,8 +16,10 @@ class BedrockCommand : public SQLiteCommand {

enum TIMING_INFO {
INVALID,
PREPEEK,
PEEK,
PROCESS,
POSTPROCESS,
COMMIT_WORKER,
COMMIT_SYNC,
QUEUE_WORKER,
@@ -26,8 +28,10 @@ class BedrockCommand : public SQLiteCommand {
};

enum class STAGE {
PREPEEK,
PEEK,
PROCESS
PROCESS,
POSTPROCESS
};

// Times in *milliseconds*.
9 changes: 5 additions & 4 deletions BedrockCore.h
Original file line number Diff line number Diff line change
@@ -11,10 +11,11 @@ class BedrockCore : public SQLiteCore {
enum class RESULT {
INVALID = 0,
COMPLETE = 1,
SHOULD_PROCESS = 2,
NEEDS_COMMIT = 3,
NO_COMMIT_REQUIRED = 4,
SERVER_NOT_LEADING = 5
SHOULD_PEEK = 2,
SHOULD_PROCESS = 3,
NEEDS_COMMIT = 4,
NO_COMMIT_REQUIRED = 5,
SERVER_NOT_LEADING = 6
};

// Automatic timing class that records an entry corresponding to its lifespan.

0 comments on commit e94300a

Please sign in to comment.