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
f2ea78cd
Commit
f2ea78cd
authored
Aug 16, 2004
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented the mmTask* functions.
parent
1b53ecba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
2 deletions
+44
-2
winmm.c
dlls/winmm/winmm.c
+40
-2
winmm.spec
dlls/winmm/winmm.spec
+4
-0
No files found.
dlls/winmm/winmm.c
View file @
f2ea78cd
...
...
@@ -3233,7 +3233,7 @@ struct mm_starter
HANDLE
event
;
};
DWORD
WINAPI
mmTaskRun
(
void
*
pmt
)
static
DWORD
WINAPI
mmTaskRun
(
void
*
pmt
)
{
struct
mm_starter
mms
;
...
...
@@ -3244,6 +3244,9 @@ DWORD WINAPI mmTaskRun(void* pmt)
return
0
;
}
/******************************************************************
* mmTaskCreate (WINMM.@)
*/
MMRESULT
WINAPI
mmTaskCreate
(
LPTASKCALLBACK
cb
,
HANDLE
*
ph
,
DWORD
client
)
{
HANDLE
hThread
;
...
...
@@ -3251,7 +3254,7 @@ MMRESULT WINAPI mmTaskCreate(LPTASKCALLBACK cb, HANDLE* ph, DWORD client)
struct
mm_starter
*
mms
;
mms
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
mm_starter
));
if
(
mms
==
NULL
)
{
return
TASKERR_OUTOFMEMORY
;
}
if
(
mms
==
NULL
)
return
TASKERR_OUTOFMEMORY
;
mms
->
cb
=
cb
;
mms
->
client
=
client
;
...
...
@@ -3268,3 +3271,38 @@ MMRESULT WINAPI mmTaskCreate(LPTASKCALLBACK cb, HANDLE* ph, DWORD client)
CloseHandle
(
hThread
);
return
0
;
}
/******************************************************************
* mmTaskBlock (WINMM.@)
*/
void
WINAPI
mmTaskBlock
(
HANDLE
tid
)
{
MSG
msg
;
do
{
GetMessageA
(
&
msg
,
0
,
0
,
0
);
if
(
msg
.
hwnd
)
DispatchMessageA
(
&
msg
);
}
while
(
msg
.
message
!=
WM_USER
);
}
/******************************************************************
* mmTaskSignal (WINMM.@)
*/
BOOL
WINAPI
mmTaskSignal
(
HANDLE
tid
)
{
return
PostThreadMessageW
((
DWORD
)
tid
,
WM_USER
,
0
,
0
);
}
/******************************************************************
* mmTaskYield (WINMM.@)
*/
void
WINAPI
mmTaskYield
(
void
)
{}
/******************************************************************
* mmGetCurrentTask (WINMM.@)
*/
HANDLE
WINAPI
mmGetCurrentTask
(
void
)
{
return
(
HANDLE
)
GetCurrentThreadId
();
}
dlls/winmm/winmm.spec
View file @
f2ea78cd
...
...
@@ -112,6 +112,7 @@
@ stdcall mixerMessage(long long long long)
@ stdcall mixerOpen(ptr long long long long)
@ stdcall mixerSetControlDetails(long ptr long)
@ stdcall mmGetCurrentTask()
@ stdcall mmioAdvance(long ptr long)
@ stdcall mmioAscend(long ptr long)
@ stdcall mmioClose(long long)
...
...
@@ -135,7 +136,10 @@
@ stdcall mmioStringToFOURCCW(wstr long)
@ stdcall mmioWrite(long ptr long)
@ stdcall mmsystemGetVersion()
@ stdcall mmTaskBlock(long)
@ stdcall mmTaskCreate(ptr ptr long)
@ stdcall mmTaskSignal(long)
@ stdcall mmTaskYield()
@ stdcall sndPlaySoundA(ptr long)
@ stdcall sndPlaySoundW(ptr long)
@ stdcall timeBeginPeriod(long)
...
...
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