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
bda14f61
Commit
bda14f61
authored
Jun 12, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Don't inline transitionJobState.
parent
13c3f7ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
job.c
dlls/qmgr/job.c
+14
-0
qmgr.h
dlls/qmgr/qmgr.h
+1
-15
No files found.
dlls/qmgr/job.c
View file @
bda14f61
...
...
@@ -27,6 +27,20 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
qmgr
);
BOOL
transitionJobState
(
BackgroundCopyJobImpl
*
job
,
BG_JOB_STATE
from
,
BG_JOB_STATE
to
)
{
BOOL
ret
=
FALSE
;
EnterCriticalSection
(
&
globalMgr
.
cs
);
if
(
job
->
state
==
from
)
{
job
->
state
=
to
;
ret
=
TRUE
;
}
LeaveCriticalSection
(
&
globalMgr
.
cs
);
return
ret
;
}
struct
copy_error
{
IBackgroundCopyError
IBackgroundCopyError_iface
;
...
...
dlls/qmgr/qmgr.h
View file @
bda14f61
...
...
@@ -113,6 +113,7 @@ HRESULT EnumBackgroundCopyFilesConstructor(BackgroundCopyJobImpl*, IEnumBackgrou
DWORD
WINAPI
fileTransfer
(
void
*
param
)
DECLSPEC_HIDDEN
;
void
processJob
(
BackgroundCopyJobImpl
*
job
)
DECLSPEC_HIDDEN
;
BOOL
processFile
(
BackgroundCopyFileImpl
*
file
,
BackgroundCopyJobImpl
*
job
)
DECLSPEC_HIDDEN
;
BOOL
transitionJobState
(
BackgroundCopyJobImpl
*
job
,
BG_JOB_STATE
from
,
BG_JOB_STATE
to
)
DECLSPEC_HIDDEN
;
/* Little helper functions */
static
inline
WCHAR
*
strdupW
(
const
WCHAR
*
src
)
...
...
@@ -142,19 +143,4 @@ static inline HRESULT return_strval(const WCHAR *str, WCHAR **ret)
return
S_OK
;
}
static
inline
BOOL
transitionJobState
(
BackgroundCopyJobImpl
*
job
,
BG_JOB_STATE
fromState
,
BG_JOB_STATE
toState
)
{
BOOL
rv
=
FALSE
;
EnterCriticalSection
(
&
globalMgr
.
cs
);
if
(
job
->
state
==
fromState
)
{
job
->
state
=
toState
;
rv
=
TRUE
;
}
LeaveCriticalSection
(
&
globalMgr
.
cs
);
return
rv
;
}
#endif
/* __QMGR_H__ */
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