equal
deleted
inserted
replaced
1 /* Copyright (c) 2009 The Khronos Group Inc. |
1 /* Copyright (c) 2009 The Khronos Group Inc. |
2 * Portions copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies) |
|
3 * |
2 * |
4 * Permission is hereby granted, free of charge, to any person obtaining a |
3 * Permission is hereby granted, free of charge, to any person obtaining a |
5 * copy of this software and/or associated documentation files (the |
4 * copy of this software and/or associated documentation files (the |
6 * "Materials"), to deal in the Materials without restriction, including |
5 * "Materials"), to deal in the Materials without restriction, including |
7 * without limitation the rights to use, copy, modify, merge, publish, |
6 * without limitation the rights to use, copy, modify, merge, publish, |
31 |
30 |
32 #ifdef __cplusplus |
31 #ifdef __cplusplus |
33 extern "C" { |
32 extern "C" { |
34 #endif |
33 #endif |
35 |
34 |
36 #define WAIT_FOREVER -1 |
|
37 #define MSG_QUEUE_WAIT_MSG_FETCHED 0 |
|
38 #define MSG_QUEUE_WAIT_MSG_ERR -1 |
|
39 #define MSG_QUEUE_WAIT_MSG_TIMEDOUT -2 |
|
40 #define MSG_QUEUE_INIT_OK 0 |
|
41 #define MSG_QUEUE_INIT_ERR -1 |
|
42 |
|
43 |
35 |
44 typedef struct { |
36 typedef struct { |
45 OWFuint id; |
37 OWFuint id; |
46 void* data; |
38 void* data; |
47 } OWF_MESSAGE; |
39 } OWF_MESSAGE; |
48 |
40 |
49 typedef struct _MSGQUE { |
41 typedef struct _MSGQUE { |
50 void* queuePtr; |
42 OWFint read; |
|
43 OWFint write; |
51 } OWF_MESSAGE_QUEUE; |
44 } OWF_MESSAGE_QUEUE; |
52 |
45 |
53 /* |
46 /* |
54 * Destroy message queue |
47 * Destroy message queue |
55 * |
48 * |