author | Faisal Memon <faisal.memon@nokia.com> |
Mon, 20 Sep 2010 17:51:52 +0100 | |
branch | bug235_bringup_0 |
changeset 26 | e26655e7cad8 |
parent 10 | cd3ce1b777ef |
permissions | -rw-r--r-- |
10
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
1 |
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
2 |
// All rights reserved. |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.0" |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
7 |
// |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
8 |
// Initial Contributors: |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
10 |
// |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
11 |
// Contributors: |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
12 |
// |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
13 |
// Description: |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
14 |
// This header is to create platform independent |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
15 |
// threading / synchronization API types and values. |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
16 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
17 |
#ifndef PSU_PLATFORMTHREADING_H |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
18 |
#define PSU_PLATFORMTHREADING_H |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
19 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
20 |
#ifdef WIN32 |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
21 |
#include <windows.h> |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
22 |
#else |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
23 |
#include <pthread.h> |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
24 |
#include <semaphore.h> |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
25 |
#include <signal.h> |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
26 |
#endif |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
27 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
28 |
#include "platformtypes.h" |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
29 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
30 |
namespace Psu |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
31 |
{ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
32 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
33 |
#ifdef WIN32 |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
34 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
35 |
typedef HANDLE PLATFORM_THREAD_T; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
36 |
typedef DWORD PLATFORM_THREADFUNC_RETTYPE; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
37 |
typedef LPTHREAD_START_ROUTINE PLATFORM_THREADFUNC; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
38 |
typedef CRITICAL_SECTION PLATFORM_MUTEX_T; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
39 |
typedef HANDLE PLATFORM_SEMAPHORE_T; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
40 |
typedef DWORD STATUS_T; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
41 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
42 |
#ifdef __GNUG__ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
43 |
typedef void (*PLATFORM_INTERRUPT_HANDLER)(ULONG_PTR); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
44 |
#else |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
45 |
typedef VOID CALLBACK PLATFORM_INTERRUPT_HANDLER (__in ULONG_PTR); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
46 |
#endif |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
47 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
48 |
#else // LINUX |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
49 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
50 |
typedef pthread_t PLATFORM_THREAD_T; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
51 |
typedef void * PLATFORM_THREADFUNC_RETTYPE; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
52 |
typedef void * (*PLATFORM_THREADFUNC)(void *); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
53 |
typedef pthread_mutex_t PLATFORM_MUTEX_T; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
54 |
typedef sem_t PLATFORM_SEMAPHORE_T; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
55 |
typedef int STATUS_T; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
56 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
57 |
typedef void (*PLATFORM_INTERRUPT_HANDLER)(int); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
58 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
59 |
#define WINAPI |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
60 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
61 |
#endif |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
62 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
63 |
#ifndef WIN32 |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
64 |
extern const int MicrosecsInMillisec; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
65 |
#endif |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
66 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
67 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
68 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
69 |
* Creates a thread with the default attributes. |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
70 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
71 |
int platform_create_simple_thread(PLATFORM_THREAD_T * pThreadHandle, |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
72 |
PLATFORM_THREADFUNC pFunc, |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
73 |
void * param); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
74 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
75 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
76 |
* Releases a thread (does not kill it). |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
77 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
78 |
void platform_release_thread(PLATFORM_THREAD_T threadHandle); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
79 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
80 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
81 |
* Waits for a thread to terminate. |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
82 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
83 |
STATUS_T platform_join_thread(PLATFORM_THREAD_T threadHandle); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
84 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
85 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
86 |
* Initializes a mutex (CRITICAL_SECTION on windows). |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
87 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
88 |
void platform_mutex_init(PLATFORM_MUTEX_T * pMutex); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
89 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
90 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
91 |
* Destroys a mutex (CRITICAL_SECTION on windows). |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
92 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
93 |
void platform_mutex_destroy(PLATFORM_MUTEX_T * pMutex); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
94 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
95 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
96 |
*Locks a mutex ("enters" a CRITICAL_SECTION on windows). |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
97 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
98 |
void platform_mutex_lock(PLATFORM_MUTEX_T * pMutex); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
99 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
100 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
101 |
* Unlocks a mutex ("exits" a CRITICAL_SECTION on windows). |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
102 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
103 |
void platform_mutex_unlock(PLATFORM_MUTEX_T * pMutex); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
104 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
105 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
106 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
107 |
* Sleeps for a certain duration for given milliseconds. |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
108 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
109 |
void platform_sleep(int millisecs); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
110 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
111 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
112 |
* Creates a semaphore with the default attributes. |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
113 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
114 |
STATUS_T platform_create_semaphore(PLATFORM_SEMAPHORE_T& semHandle, |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
115 |
int initialCount,int maximumCount); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
116 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
117 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
118 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
119 |
* wait for the semaphore signal |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
120 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
121 |
STATUS_T platform_wait_for_signal(PLATFORM_SEMAPHORE_T& semHandle); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
122 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
123 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
124 |
* Posts a semaphore signal so that the pending thread can continue |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
125 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
126 |
void platform_signal_semaphore(PLATFORM_SEMAPHORE_T& semHandle); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
127 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
128 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
129 |
* releases a semaphore object/handle. |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
130 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
131 |
void platform_release_semaphore(PLATFORM_SEMAPHORE_T& semHandle); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
132 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
133 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
134 |
* do an interruptable sleep |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
135 |
* @param length the length thread should sleep, in milliseconds |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
136 |
* @return 0 if the sleep expires normally, non-zero if the sleep has |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
137 |
* been interrupted |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
138 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
139 |
int32_t platform_interruptable_sleep(int64_t length); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
140 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
141 |
/** |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
142 |
* signals a thread to interrupt a sleep |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
143 |
* @param handle PLATFORM_THREAD_T handle to the thread |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
144 |
* @return whether the interrupt succeeded or not |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
145 |
*/ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
146 |
bool platform_interrupt_sleep(PLATFORM_THREAD_T handle); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
147 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
148 |
#ifndef WIN32 |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
149 |
class SignalUSR1Handler |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
150 |
{ |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
151 |
private: |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
152 |
SignalUSR1Handler(); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
153 |
~SignalUSR1Handler(); |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
154 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
155 |
struct sigaction sa; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
156 |
struct sigaction old; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
157 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
158 |
public: |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
159 |
static SignalUSR1Handler instance; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
160 |
}; |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
161 |
#endif |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
162 |
} |
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
163 |
|
cd3ce1b777ef
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents:
6
diff
changeset
|
164 |
#endif |