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
d932e6ba
Commit
d932e6ba
authored
21 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
More fixes in the fallback Fifo.
Rev: lib/modules/Thread.pmod:1.39
parent
f4655c82
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/Thread.pmod
+6
-7
6 additions, 7 deletions
lib/modules/Thread.pmod
with
6 additions
and
7 deletions
lib/modules/Thread.pmod
+
6
−
7
View file @
d932e6ba
...
@@ -808,13 +808,6 @@ class Fifo
...
@@ -808,13 +808,6 @@ class Fifo
return ret;
return ret;
}
}
int write(mixed value)
{
if (num == sizeof(buffer)) error ("Deadlock detected - fifo full.\n");
write_unlocked (value);
return num;
}
int try_write(mixed value)
int try_write(mixed value)
{
{
if (num == sizeof (buffer)) return 0;
if (num == sizeof (buffer)) return 0;
...
@@ -822,6 +815,12 @@ class Fifo
...
@@ -822,6 +815,12 @@ class Fifo
return ++num;
return ++num;
}
}
int write(mixed value)
{
if (!try_write(value)) error("Deadlock detected - fifo full.\n");
return num;
}
static void create(int|void size)
static void create(int|void size)
{
{
write_tres=0;
write_tres=0;
...
...
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