Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Container 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
bf113123
Commit
bf113123
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added yield function to reduce DOS program CPU hogging.
parent
e1225389
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/sbbsexec.c
+6
-2
6 additions, 2 deletions
src/sbbs3/sbbsexec.c
src/sbbs3/vdd_func.h
+1
-0
1 addition, 0 deletions
src/sbbs3/vdd_func.h
with
7 additions
and
2 deletions
src/sbbs3/sbbsexec.c
+
6
−
2
View file @
bf113123
...
...
@@ -62,6 +62,7 @@ __declspec(dllexport) void __cdecl VDDDispatch(void)
static
RingBuf
rdbuf
;
static
FILE
*
fp
;
retval
=
0
;
node_num
=
getBH
();
switch
(
getBL
())
{
...
...
@@ -280,7 +281,6 @@ __declspec(dllexport) void __cdecl VDDDispatch(void)
retval
=
0
;
break
;
#if 1
case
VDD_INBUF_FULL
:
if
(
!
GetMailslotInfo
(
rdslot
,
// mailslot handle
...
...
@@ -338,7 +338,11 @@ __declspec(dllexport) void __cdecl VDDDispatch(void)
retval
=
1
;
online_poll
++
;
break
;
#endif
case
VDD_YIELD
:
Sleep
(
1
);
break
;
default:
if
(
fp
!=
NULL
)
fprintf
(
fp
,
"!UNKNOWN VDD_OP: %d
\r\n
"
,
getBL
());
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/vdd_func.h
+
1
−
0
View file @
bf113123
...
...
@@ -50,6 +50,7 @@ enum {
,
VDD_OUTBUF_FULL
,
VDD_OUTBUF_SIZE
,
VDD_ONLINE
,
VDD_YIELD
};
typedef
struct
{
...
...
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