-
Notifications
You must be signed in to change notification settings - Fork 23.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Background I/O library enhanced so that the main thread can query for…
… the number of pending jobs of the specified type.
- Loading branch information
Showing
2 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
/* Exported API */ | ||
void bioInit(void); | ||
void bioCreateBackgroundJob(int type, void *data); | ||
unsigned long long bioPendingJobsOfType(int type); | ||
void bioWaitPendingJobsLE(int type, unsigned long long num); | ||
|
||
/* Background job opcodes */ | ||
#define REDIS_BIO_CLOSE_FILE 1 | ||
#define REDIS_BIO_ZERO_OP_ID 0 /* We don't use zero as it is the most likely | ||
* passed value in case of bugs/races. */ | ||
#define REDIS_BIO_CLOSE_FILE 1 /* Deferred close(2) syscall. */ | ||
#define REDIS_BIO_MAX_OP_ID 1 |