Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
03c9aeed
Commit
03c9aeed
authored
24 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
ok, trying to make it work without threads again..
Rev: src/modules/Mird/mird_glue.c:1.6
parent
98a4a9ee
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/Mird/mird_glue.c
+6
-0
6 additions, 0 deletions
src/modules/Mird/mird_glue.c
with
6 additions
and
0 deletions
src/modules/Mird/mird_glue.c
+
6
−
0
View file @
03c9aeed
...
@@ -104,7 +104,9 @@ static void pmird_no_transaction(void)
...
@@ -104,7 +104,9 @@ static void pmird_no_transaction(void)
struct
pmird_storage
struct
pmird_storage
{
{
struct
mird
*
db
;
struct
mird
*
db
;
#ifdef PIKE_THREADS
PIKE_MUTEX_T
mutex
;
PIKE_MUTEX_T
mutex
;
#endif
};
};
#define THIS ((struct pmird_storage*)(fp->current_storage))
#define THIS ((struct pmird_storage*)(fp->current_storage))
...
@@ -112,7 +114,9 @@ struct pmird_storage
...
@@ -112,7 +114,9 @@ struct pmird_storage
static
void
init_pmird
(
struct
object
*
o
)
static
void
init_pmird
(
struct
object
*
o
)
{
{
THIS
->
db
=
NULL
;
THIS
->
db
=
NULL
;
#ifdef PIKE_THREADS
mt_init
(
&
THIS
->
mutex
);
mt_init
(
&
THIS
->
mutex
);
#endif
}
}
static
void
exit_pmird
(
struct
object
*
o
)
static
void
exit_pmird
(
struct
object
*
o
)
...
@@ -122,7 +126,9 @@ static void exit_pmird(struct object *o)
...
@@ -122,7 +126,9 @@ static void exit_pmird(struct object *o)
mird_free_structure
(
THIS
->
db
);
mird_free_structure
(
THIS
->
db
);
THIS
->
db
=
NULL
;
THIS
->
db
=
NULL
;
}
}
#ifdef PIKE_THREADS
mt_destroy
(
&
THIS
->
mutex
);
mt_destroy
(
&
THIS
->
mutex
);
#endif
}
}
/*
/*
...
...
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