Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
my-kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASE-2021
my-kernel
Commits
47ad6fa4
Commit
47ad6fa4
authored
4 years ago
by
Thierno souleymane Bah
Browse files
Options
Downloads
Patches
Plain Diff
feat(semanphore with scheduling done)
parent
5acd350c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/context.h
+2
-0
2 additions, 0 deletions
include/context.h
src/context.c
+2
-2
2 additions, 2 deletions
src/context.c
with
4 additions
and
2 deletions
include/context.h
+
2
−
0
View file @
47ad6fa4
...
@@ -11,6 +11,7 @@ typedef enum
...
@@ -11,6 +11,7 @@ typedef enum
{
{
CTX_INIT
,
CTX_INIT
,
CTX_EXEC
,
CTX_EXEC
,
CTX_WAIT
,
CTX_END
CTX_END
}
ctx_status_t
;
}
ctx_status_t
;
...
@@ -23,6 +24,7 @@ typedef struct ctx_s
...
@@ -23,6 +24,7 @@ typedef struct ctx_s
void
*
args
;
void
*
args
;
ctx_status_t
status
;
ctx_status_t
status
;
struct
ctx_s
*
next_ctx
;
struct
ctx_s
*
next_ctx
;
struct
ctx_s
*
sem_next_ctx
;
char
used
;
char
used
;
}
ctx_t
;
}
ctx_t
;
...
...
This diff is collapsed.
Click to expand it.
src/context.c
+
2
−
2
View file @
47ad6fa4
#include
"context.h"
#include
"context.h"
#include
"utils.h"
#include
"utils.h"
static
ctx_t
*
current_ctx
=
NULL
;
ctx_t
*
current_ctx
=
NULL
;
static
ctx_t
*
ring_ctx
=
NULL
;
ctx_t
*
ring_ctx
=
NULL
;
ctx_t
*
malloc_ctx
()
ctx_t
*
malloc_ctx
()
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment