Ignore:
Timestamp:
Oct 31, 2009, 2:00:20 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

3rdparty: os2/xsystray: Use shared memory pool instead of TLS for structures sent to the system tray server by the client-side API. The memory pool is big enough to hold ~64 simultaneous requests to the server (e.g. 64 parallel threads). This also fixes a potential bug when not all threads could re-give their per-thread memory blocks to the server process after it is stopped and restarted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/3rdparty/os2/xsystray/xsystray.h

    r256 r272  
    3939} SYSTRAYCMD;
    4040
    41 // NOTE: the idea is to fit SYSTRAYCTLDATA into a page (4K) since this is the
    42 // smallest piece DosAllocSharedMem() allocates anyway.
    4341typedef struct
    4442{
     
    6967        {
    7068            ULONG   ulId;
    71             CHAR    szText[4000]; // occupy as much of 4K page as we can
     69            CHAR    szText[512];
    7270        } tooltip;
    7371
Note: See TracChangeset for help on using the changeset viewer.