Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e3174d93
Commit
e3174d93
authored
Jan 30, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp60: Fix _Lockit class implementation.
parent
f3caa768
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
52 deletions
+9
-52
misc.c
dlls/msvcp60/misc.c
+8
-51
msvcp.h
dlls/msvcp60/msvcp.h
+1
-1
No files found.
dlls/msvcp60/misc.c
View file @
e3174d93
...
...
@@ -89,56 +89,21 @@ void CDECL mutex_mutex_dtor(mutex *m)
mutex_dtor
(
m
);
}
static
CRITICAL_SECTION
lockit_cs
[
_MAX_LOCK
];
/* ?_Lockit_ctor@_Lockit@std@@SAXH@Z */
void
__cdecl
_Lockit_init
(
int
locktype
)
{
InitializeCriticalSection
(
&
lockit_cs
[
locktype
]);
lockit_cs
[
locktype
].
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": _Lockit critical section"
);
}
/* ?_Lockit_dtor@_Lockit@std@@SAXH@Z */
void
__cdecl
_Lockit_free
(
int
locktype
)
{
lockit_cs
[
locktype
].
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
lockit_cs
[
locktype
]);
}
static
CRITICAL_SECTION
lockit_cs
;
void
init_lockit
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
_MAX_LOCK
;
i
++
)
_Lockit_init
(
i
);
InitializeCriticalSection
(
&
lockit_cs
);
lockit_cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": _Lockit critical section"
);
}
void
free_lockit
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
_MAX_LOCK
;
i
++
)
_Lockit_free
(
i
);
lockit_cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
lockit_cs
);
}
/* ?_Lockit_ctor@_Lockit@std@@CAXPAV12@H@Z */
/* ?_Lockit_ctor@_Lockit@std@@CAXPEAV12@H@Z */
void
__cdecl
_Lockit__Lockit_ctor_locktype
(
_Lockit
*
lockit
,
int
locktype
)
{
lockit
->
locktype
=
locktype
;
EnterCriticalSection
(
&
lockit_cs
[
locktype
]);
}
/* ?_Lockit_ctor@_Lockit@std@@CAXPAV12@@Z */
/* ?_Lockit_ctor@_Lockit@std@@CAXPEAV12@@Z */
void
__cdecl
_Lockit__Lockit_ctor
(
_Lockit
*
lockit
)
{
_Lockit__Lockit_ctor_locktype
(
lockit
,
0
);
}
/* ??0_Lockit@std@@QAE@H@Z */
/* ??0_Lockit@std@@QEAA@H@Z */
DEFINE_THISCALL_WRAPPER
(
_Lockit_ctor_locktype
,
8
)
_Lockit
*
__thiscall
_Lockit_ctor_locktype
(
_Lockit
*
this
,
int
locktype
)
{
_Lockit__Lockit_ctor_locktype
(
this
,
locktype
);
EnterCriticalSection
(
&
lockit_cs
);
return
this
;
}
...
...
@@ -147,15 +112,7 @@ _Lockit* __thiscall _Lockit_ctor_locktype(_Lockit *this, int locktype)
DEFINE_THISCALL_WRAPPER
(
_Lockit_ctor
,
4
)
_Lockit
*
__thiscall
_Lockit_ctor
(
_Lockit
*
this
)
{
_Lockit__Lockit_ctor_locktype
(
this
,
0
);
return
this
;
}
/* ?_Lockit_dtor@_Lockit@std@@CAXPAV12@@Z */
/* ?_Lockit_dtor@_Lockit@std@@CAXPEAV12@@Z */
void
__cdecl
_Lockit__Lockit_dtor
(
_Lockit
*
lockit
)
{
LeaveCriticalSection
(
&
lockit_cs
[
lockit
->
locktype
]);
return
_Lockit_ctor_locktype
(
this
,
0
);
}
/* ??1_Lockit@std@@QAE@XZ */
...
...
@@ -163,7 +120,7 @@ void __cdecl _Lockit__Lockit_dtor(_Lockit *lockit)
DEFINE_THISCALL_WRAPPER
(
_Lockit_dtor
,
4
)
void
__thiscall
_Lockit_dtor
(
_Lockit
*
this
)
{
_Lockit__Lockit_dtor
(
thi
s
);
LeaveCriticalSection
(
&
lockit_c
s
);
}
/* wctype */
...
...
dlls/msvcp60/msvcp.h
View file @
e3174d93
...
...
@@ -256,7 +256,7 @@ void __thiscall locale_dtor(locale*);
/* class _Lockit */
typedef
struct
{
int
locktype
;
char
empty_struct
;
}
_Lockit
;
#define _LOCK_LOCALE 0
...
...
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