Changeset 10587 for trunk/src


Ignore:
Timestamp:
Apr 20, 2004, 12:11:44 PM (21 years ago)
Author:
sandervl
Message:

KSO: Update

Location:
trunk/src
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libwrap/makefile

    r10584 r10587  
    1 # $Id: makefile,v 1.4 2004-04-14 11:04:43 sandervl Exp $
     1# $Id: makefile,v 1.5 2004-04-20 10:11:17 sandervl Exp $
    22
    33#
     
    16271627$(OBJDIR)\O32_CreatePaletteFromPMHandle.obj \
    16281628$(OBJDIR)\O32_GetPMHandleFromGDIHandle.obj \
    1629 $(OBJDIR)\_WinSetErrorInfo.obj
     1629$(OBJDIR)\_WinSetErrorInfo.obj \
     1630$(OBJDIR)\_DosVerifyPidTid.obj
    16301631
    16311632
     
    32533254O32_GetPMHandleFromGDIHandle.asm
    32543255_WinSetErrorInfo.asm
     3256_DosVerifyPidTid.asm
    32553257<<KEEP 
  • trunk/src/user32/gen_object.cpp

    r6375 r10587  
    1 /* $Id: gen_object.cpp,v 1.12 2001-07-20 15:34:16 sandervl Exp $ */
     1/* $Id: gen_object.cpp,v 1.13 2004-04-20 10:11:42 sandervl Exp $ */
    22/*
    33 * Generic Object Class for OS/2
    44 *
    55 * Allocated in shared memory, so other processes can access the objects
    6  * 
     6 *
    77 * NOTE: Requires safety precautions to use objects in multiple threads or processes
    88 *
     
    2222//******************************************************************************
    2323//******************************************************************************
    24 GenericObject::GenericObject(GenericObject **head, CRITICAL_SECTION *pLock)
     24GenericObject::GenericObject(GenericObject **head, VMutex *pLock)
    2525{
    2626  this->pLock = pLock;
     
    2828  this->next  = NULL;
    2929  refCount    = 1;
    30  
     30
    3131  fLinked     = FALSE;
    3232  fDeletePending = FALSE;
  • trunk/src/user32/gen_object.h

    r5950 r10587  
    1 /* $Id: gen_object.h,v 1.7 2001-06-10 09:19:57 sandervl Exp $ */
     1/* $Id: gen_object.h,v 1.8 2004-04-20 10:11:42 sandervl Exp $ */
    22/*
    33 * Generic Object Class for OS/2
     
    1313#include <win32api.h>
    1414#endif
     15#include <VMutex.h>
    1516
    1617class GenericObject
    1718{
    1819public:
    19          GenericObject(GenericObject **head, CRITICAL_SECTION *pLock);
     20         GenericObject(GenericObject **head, VMutex *pLock);
    2021virtual ~GenericObject();
    2122
     
    2324GenericObject *GetNext()        { return next;  };
    2425
    25          void  lock()           { EnterCriticalSection(pLock); };
    26          void  unlock()         { LeaveCriticalSection(pLock); };
     26         void  lock()           { pLock->enter(); };
     27         void  unlock()         { pLock->leave(); };
    2728
    2829         void  link();
     
    3940         void  markDeleted()    { fDeletePending = TRUE; };
    4041
    41 static   void  lock(CRITICAL_SECTION *pLock)           { EnterCriticalSection(pLock); };
    42 static   void  unlock(CRITICAL_SECTION *pLock)         { LeaveCriticalSection(pLock); };
     42static   void  lock(VMutex *pLock)           { pLock->enter(); };
     43static   void  unlock(VMutex *pLock)         { pLock->leave(); };
    4344
    4445static   void  DestroyAll(GenericObject *head);
     
    6869protected:
    6970
    70          CRITICAL_SECTION *pLock;
     71         VMutex          *pLock;
    7172         LONG              refCount;
    7273         ULONG             fLinked        : 1,
     
    7475
    7576         GenericObject   **head;
    76          GenericObject    *next;         
     77         GenericObject    *next;       
    7778};
    7879
  • trunk/src/user32/win32class.cpp

    r9523 r10587  
    1 /* $Id: win32class.cpp,v 1.30 2002-12-18 12:28:06 sandervl Exp $ */
     1/* $Id: win32class.cpp,v 1.31 2004-04-20 10:11:42 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Managment Code for OS/2
     
    1616 *       that can be used by other apps. (low priority)
    1717 *
    18  * NOTE: To access a class object, you must call FindClass. This method 
    19  *       increases the reference count of the object. When you're done 
     18 * NOTE: To access a class object, you must call FindClass. This method
     19 *       increases the reference count of the object. When you're done
    2020 *       with the object, you MUST call the release method!
    2121 *       This mechanism prevents premature destruction of objects when there
     
    4545//Win32WndClass methods:
    4646//******************************************************************************
    47 Win32WndClass::Win32WndClass(WNDCLASSEXA *wndclass, WNDCLASS_TYPE fClassType) 
     47Win32WndClass::Win32WndClass(WNDCLASSEXA *wndclass, WNDCLASS_TYPE fClassType)
    4848                  : GenericObject(&wndclasses, &critsect)
    4949{
     
    5151  processId = 0;
    5252
    53   if(HIWORD(wndclass->lpszClassName)) 
     53  if(HIWORD(wndclass->lpszClassName))
    5454  {
    5555        if(fClassType == WNDCLASS_UNICODE) {
     
    373373    else proc = (pfnWindowProcA) ? pfnWindowProcA : pfnWindowProcW;
    374374
    375     return proc; 
     375    return proc;
    376376};
    377377//******************************************************************************
     
    452452                WNDPROC pfnWindowProc = pfnWindowProcA;
    453453
    454                 if(pfnWindowProcW) 
     454                if(pfnWindowProcW)
    455455                {
    456                     if(!pfnWindowProc || fUnicode) 
     456                    if(!pfnWindowProc || fUnicode)
    457457                        pfnWindowProc = pfnWindowProcW;
    458458                }
     
    551551                WINDOWPROCTYPE type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A;
    552552
    553                 if(pfnWindowProcW) 
     553                if(pfnWindowProcW)
    554554                {
    555                     if(!*proc || fUnicode) 
     555                    if(!*proc || fUnicode)
    556556                        proc = &pfnWindowProcW;
    557557                }
     
    645645            SetLastError(ERROR_CLASS_HAS_WINDOWS);
    646646            return FALSE;
    647         }   
     647        }
    648648        wndclass->markDeleted();
    649649        RELEASE_CLASSOBJ(wndclass);
    650    
     650
    651651        SetLastError(ERROR_SUCCESS);
    652652        return TRUE;
     
    659659//******************************************************************************
    660660GenericObject   *Win32WndClass::wndclasses = NULL;
    661 CRITICAL_SECTION Win32WndClass::critsect   = {0};
     661VMutex           Win32WndClass::critsect;
  • trunk/src/user32/win32class.h

    r9568 r10587  
    1 /* $Id: win32class.h,v 1.17 2002-12-30 15:49:00 sandervl Exp $ */
     1/* $Id: win32class.h,v 1.18 2004-04-20 10:11:43 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Managment Code for OS/2
     
    112112
    113113 static GenericObject *wndclasses;
    114  static CRITICAL_SECTION critsect;
     114 static VMutex        critsect;
    115115};
    116116
  • trunk/src/user32/win32wbase.cpp

    r10585 r10587  
    1 /* $Id: win32wbase.cpp,v 1.388 2004-04-15 16:18:55 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.389 2004-04-20 10:11:43 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    24762476        //SvL: These checks are causing problems in Lotus Notes 6
    24772477        //     It's not entirely clear why, but child windows are not placed
    2478         //     correctly when enabling them. 
     2478        //     correctly when enabling them.
    24792479#if 0
    24802480        if((rectWindow.right - rectWindow.left == cx) && (rectWindow.bottom - rectWindow.top == cy)) {
     
    26682668    }
    26692669
    2670     if(!(fuFlags & SWP_NOSIZE)) 
     2670    if(!(fuFlags & SWP_NOSIZE))
    26712671    {
    26722672        // We must call this function or open DC will get out of sync
     
    42744274//******************************************************************************
    42754275GenericObject   *Win32BaseWindow::windows  = NULL;
    4276 CRITICAL_SECTION Win32BaseWindow::critsect = {0};
     4276VMutex           Win32BaseWindow::critsect;
    42774277
    42784278//******************************************************************************
  • trunk/src/user32/win32wbase.h

    r10379 r10587  
    1 /* $Id: win32wbase.h,v 1.157 2004-01-11 12:03:20 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.158 2004-04-20 10:11:44 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    469469
    470470static GenericObject *windows;
    471 static CRITICAL_SECTION  critsect;
     471static VMutex         critsect;
    472472
    473473private:
  • trunk/src/user32/win32wndchild.cpp

    r5935 r10587  
    1 /* $Id: win32wndchild.cpp,v 1.7 2001-06-09 14:50:24 sandervl Exp $ */
     1/* $Id: win32wndchild.cpp,v 1.8 2004-04-20 10:11:44 sandervl Exp $ */
    22/*
    33 * Win32 Child/Parent window class for OS/2
     
    1919//******************************************************************************
    2020//******************************************************************************
    21 ChildWindow::ChildWindow(CRITICAL_SECTION *pLock)
     21ChildWindow::ChildWindow(VMutex *pLock)
    2222{
    2323  parent     = 0;
  • trunk/src/user32/win32wndchild.h

    r5935 r10587  
    1 /* $Id: win32wndchild.h,v 1.6 2001-06-09 14:50:24 sandervl Exp $ */
     1/* $Id: win32wndchild.h,v 1.7 2004-04-20 10:11:44 sandervl Exp $ */
    22/*
    33 * Win32 Child/Parent window class for OS/2
     
    1616#include <win32api.h>
    1717#endif
     18#include <VMutex.h>
    1819
    1920#ifdef __cplusplus
     
    2223{
    2324public:
    24          ChildWindow(CRITICAL_SECTION *pLock);
     25         ChildWindow(VMutex *pLock);
    2526virtual ~ChildWindow();
    2627
     
    3738        parent = newParent;
    3839        return oldparent;
    39  }                   
     40 }
    4041
    4142        BOOL   addChild(ChildWindow *child);
     
    4748
    4849private:
    49          void  Lock()           { EnterCriticalSection(pLockChild); };
    50          void  Unlock()         { LeaveCriticalSection(pLockChild); };
    51  
    52    CRITICAL_SECTION *pLockChild;
     50         void  Lock()           { pLockChild->enter(); };
     51         void  Unlock()         { pLockChild->leave(); };
     52
     53   VMutex *pLockChild;
    5354
    5455   ChildWindow *parent;         //GWL_HWNDPARENT
Note: See TracChangeset for help on using the changeset viewer.