Changeset 54e8456263f8994e792be65907d341682bbdcc28
- Timestamp:
- 02/10/08 17:49:59
(7 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1202662199 +0000
- git-parent:
[e5896809c2ea5686fe1c0831c72b9e8e5a7c1e31]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1202662199 +0000
- Message:
Win32 threads: Set priority on success rather than failure.
Patch from atmo.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r9e704fa |
r54e8456 |
|
| 592 | 592 | p_priv->thread_id.id = (DWORD)threadId; |
|---|
| 593 | 593 | p_priv->thread_id.hThread = (HANDLE)hThread; |
|---|
| 594 | | ResumeThread((HANDLE)hThread); |
|---|
| | 594 | ResumeThread((HANDLE)hThread); |
|---|
| 595 | 595 | } |
|---|
| 596 | 596 | |
|---|
| 597 | 597 | i_ret = ( p_priv->thread_id.hThread ? 0 : 1 ); |
|---|
| 598 | 598 | |
|---|
| 599 | | if( i_ret && i_priority ) |
|---|
| | 599 | if( !i_ret && i_priority ) |
|---|
| 600 | 600 | { |
|---|
| 601 | 601 | if( !SetThreadPriority(p_priv->thread_id.hThread, i_priority) ) |
|---|