Changeset 113 for trunk/desktop/class_c/wpobject.c
- Timestamp:
- Nov 26, 2006, 1:36:45 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/class_c/wpobject.c
r110 r113 39 39 */ 40 40 #define INCL_DOS 41 #define INCL_DOSERRORS 42 #define INCL_DOSSEMAPHORES 41 43 #include <os2.h> 42 44 … … 45 47 46 48 #include <string.h> 49 #include "desktoptypes.h" 47 50 #include "wpobject.ih" 48 51 49 #include "desktoptypes.h"50 52 51 53 NOM_Scope gpointer NOMLINK impl_WPObject_wpAllocMem(WPObject* nomSelf, const CORBA_unsigned_long cbBytes, … … 96 98 NOM_Scope void NOMLINK impl_WPObject_nomInit(WPObject* nomSelf, CORBA_Environment *ev) 97 99 { 98 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 100 WPObjectData* nomThis=WPObjectGetData(nomSelf); 99 101 100 102 /* orbit-idl-c-stubs.c, VoyagerWriteProtoForParentCall line 84 */ … … 104 106 __FUNCTION__, nomSelf , nomSelf->mtab->nomClassName); 105 107 108 /* Initialize important data before letting subclasses do their stuff */ 109 //_gObjectMutex=g_mutex_new(); 110 if(NO_ERROR!=DosCreateMutexSem(NULL, &_gObjectMutex, 0, FALSE)) 111 { 112 g_error("Can't create a mutex for WPObject!"); 113 } 114 106 115 _wpInitData(nomSelf, ev); 107 116 } … … 109 118 NOM_Scope void NOMLINK impl_WPObject_nomUninit(WPObject* nomSelf, CORBA_Environment *ev) 110 119 { 111 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 120 WPObjectData* nomThis=WPObjectGetData(nomSelf); 112 121 113 122 _wpUnInitData(nomSelf, ev); 114 123 124 //g_mutex_free(_gObjectMutex); 125 DosCloseMutexSem(_gObjectMutex); 115 126 WPObject_nomUninit_parent(nomSelf, ev); 116 127 } … … 170 181 return NULLHANDLE; 171 182 } 183 184 NOM_Scope CORBA_unsigned_long NOMLINK impl_WPObject_wpRequestObjectMutexSem(WPObject* nomSelf, 185 const CORBA_unsigned_long ulReserved, CORBA_Environment *ev) 186 { 187 WPObjectData* nomThis=WPObjectGetData(nomSelf); 188 189 return DosRequestMutexSem(_gObjectMutex, -1L); 190 } 191 192 NOM_Scope CORBA_unsigned_long NOMLINK impl_WPObject_wpReleaseObjectMutexSem(WPObject* nomSelf, CORBA_Environment *ev) 193 { 194 WPObjectData* nomThis=WPObjectGetData(nomSelf); 195 return DosReleaseMutexSem(_gObjectMutex); 196 }
Note:
See TracChangeset
for help on using the changeset viewer.