Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
bcb4bb69
Commit
bcb4bb69
authored
May 12, 1999
by
Ove Kaaven
Committed by
Alexandre Julliard
May 12, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaner Suspend/RestoreWndsLock, which should fix some slowness.
parent
a2a4133f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
win.c
windows/win.c
+4
-5
No files found.
windows/win.c
View file @
bcb4bb69
...
...
@@ -79,8 +79,8 @@ void WIN_LockWnds()
* Unlocks access to all WND structures
*/
void
WIN_UnlockWnds
()
{
LeaveCriticalSection
(
&
WIN_CritSection
);
{
LeaveCriticalSection
(
&
WIN_CritSection
);
}
/***********************************************************************
* WIN_SuspendWndsLock
...
...
@@ -103,7 +103,7 @@ int WIN_SuspendWndsLock()
isuspendedLocks
=
WIN_CritSection
.
RecursionCount
;
/* set the recursion count of the critical section to 1
so the owning thread will be able to leave it */
WIN_CritSection
.
RecursionCount
=
1
;
while
(
WIN_CritSection
.
RecursionCount
>
1
)
WIN_UnlockWnds
()
;
/* leave critical section*/
WIN_UnlockWnds
();
...
...
@@ -125,8 +125,7 @@ void WIN_RestoreWndsLock(int ipreviousLocks)
WIN_LockWnds
();
/* set the recursion count of the critical section to the
value of suspended locks (given by WIN_SuspendWndsLock())*/
WIN_CritSection
.
RecursionCount
=
ipreviousLocks
;
while
(
WIN_CritSection
.
RecursionCount
<
ipreviousLocks
)
WIN_LockWnds
();
}
/***********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment