Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
868a8d35
Commit
868a8d35
authored
1 year ago
by
Hanicef
Browse files
Options
Downloads
Patches
Plain Diff
Fix Windows build
parent
3eb7de55
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
src/dedicated/i_system.c
+2
-0
2 additions, 0 deletions
src/dedicated/i_system.c
src/dedicated/i_threads.c
+6
-6
6 additions, 6 deletions
src/dedicated/i_threads.c
with
8 additions
and
6 deletions
src/dedicated/i_system.c
+
2
−
0
View file @
868a8d35
...
@@ -213,7 +213,9 @@ UINT8 graphics_started = 0;
...
@@ -213,7 +213,9 @@ UINT8 graphics_started = 0;
UINT8
keyboard_started
=
0
;
UINT8
keyboard_started
=
0
;
static
boolean
consolevent
=
false
;
static
boolean
consolevent
=
false
;
#if defined (__unix__) || defined(__APPLE__) || defined (UNIXCOMMON)
static
boolean
framebuffer
=
false
;
static
boolean
framebuffer
=
false
;
#endif
static
size_t
num_exit_funcs
;
static
size_t
num_exit_funcs
;
static
void
(
*
exit_funcs
[
MAX_EXIT_FUNCS
])(
void
);
static
void
(
*
exit_funcs
[
MAX_EXIT_FUNCS
])(
void
);
...
...
This diff is collapsed.
Click to expand it.
src/dedicated/i_threads.c
+
6
−
6
View file @
868a8d35
...
@@ -292,10 +292,10 @@ void I_hold_cond(I_cond *cond_anchor, I_mutex mutex_id)
...
@@ -292,10 +292,10 @@ void I_hold_cond(I_cond *cond_anchor, I_mutex mutex_id)
void
I_wake_one_cond
(
I_cond
*
anchor
)
void
I_wake_one_cond
(
I_cond
*
anchor
)
{
{
EnterCriticalSection
(
&
thread_lock
);
EnterCriticalSection
(
&
thread_lock
);
if
(
*
cond_
anchor
==
NULL
)
if
(
*
anchor
==
NULL
)
{
{
*
cond_
anchor
=
malloc
(
sizeof
(
CONDITION_VARIABLE
));
*
anchor
=
malloc
(
sizeof
(
CONDITION_VARIABLE
));
InitializeConditionVariable
(
*
cond_
anchor
);
InitializeConditionVariable
(
*
anchor
);
}
}
LeaveCriticalSection
(
&
thread_lock
);
LeaveCriticalSection
(
&
thread_lock
);
WakeConditionVariable
(
*
anchor
);
WakeConditionVariable
(
*
anchor
);
...
@@ -304,10 +304,10 @@ void I_wake_one_cond(I_cond *anchor)
...
@@ -304,10 +304,10 @@ void I_wake_one_cond(I_cond *anchor)
void
I_wake_all_cond
(
I_cond
*
anchor
)
void
I_wake_all_cond
(
I_cond
*
anchor
)
{
{
EnterCriticalSection
(
&
thread_lock
);
EnterCriticalSection
(
&
thread_lock
);
if
(
*
cond_
anchor
==
NULL
)
if
(
*
anchor
==
NULL
)
{
{
*
cond_
anchor
=
malloc
(
sizeof
(
CONDITION_VARIABLE
));
*
anchor
=
malloc
(
sizeof
(
CONDITION_VARIABLE
));
InitializeConditionVariable
(
*
cond_
anchor
);
InitializeConditionVariable
(
*
anchor
);
}
}
LeaveCriticalSection
(
&
thread_lock
);
LeaveCriticalSection
(
&
thread_lock
);
WakeAllConditionVariable
(
*
anchor
);
WakeAllConditionVariable
(
*
anchor
);
...
...
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