Ignore:
Timestamp:
Dec 31, 2001, 1:08:23 PM (24 years ago)
Author:
sandervl
Message:

use critical section in dib section class instead of vmutex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/dibsect.h

    r5825 r7717  
    1 /* $Id: dibsect.h,v 1.25 2001-05-29 09:45:21 sandervl Exp $ */
     1/* $Id: dibsect.h,v 1.26 2001-12-31 12:08:21 sandervl Exp $ */
    22
    33/*
     
    99#define __DIBSECT_H__
    1010
    11 #ifdef OS2_ONLY
     11#ifdef OS2_INCLUDED
    1212typedef struct
    1313{
     
    6161typedef BITMAPINFO *LPBITMAPINFO;
    6262
    63 #ifdef OS2_ONLY
     63#ifdef OS2_INCLUDED
    6464#define DIB_RGB_COLORS   0
    6565#define DIB_PAL_COLORS   1
     
    113113 static DIBSection *findHDC(HDC hdc);
    114114 static       void  deleteSection(HANDLE handle);
     115
     116 static       void  initDIBSection();
     117
     118 static       void  lock()   { EnterCriticalSection(&dibcritsect); };
     119 static       void  unlock() { LeaveCriticalSection(&dibcritsect); };
     120
    115121protected:
    116122
     
    129135              DIBSection*    next;                   // Next DIB section
    130136    static    DIBSection*    section;                // List of DIB sections
     137
     138    static    CRITICAL_SECTION dibcritsect;
    131139};
    132140
Note: See TracChangeset for help on using the changeset viewer.