-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Niklas Eiling <[email protected]>
- Loading branch information
Showing
4 changed files
with
110 additions
and
58 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
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,17 +1,17 @@ | ||
#ifndef _SCHED_H_ | ||
#define _SCHED_H_ | ||
#ifndef _GSCHED_H_ | ||
#define _GSCHED_H_ | ||
|
||
typedef struct _sched_t { | ||
typedef struct _gsched_t { | ||
int (*init)(void); | ||
int (*retain)(int id); | ||
int (*release)(int id); | ||
int (*rm)(int id); | ||
void (*deinit)(void); | ||
} sched_t; | ||
} gsched_t; | ||
|
||
sched_t *sched; | ||
gsched_t *sched; | ||
|
||
#define SCHED_RETAIN sched->retain(rqstp->rq_xprt->xp_fd) | ||
#define SCHED_RELEASE sched->release(rqstp->rq_xprt->xp_fd) | ||
#define GSCHED_RETAIN sched->retain(rqstp->rq_xprt->xp_fd) | ||
#define GSCHED_RELEASE sched->release(rqstp->rq_xprt->xp_fd) | ||
|
||
#endif //_SCHED_H_ | ||
#endif //_GSCHED_H_ |
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