(file) Return to IPCWindows.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common / Attic

Diff for /pegasus/src/Pegasus/Common/Attic/IPCWindows.h between version 1.15 and 1.15.4.1

version 1.15, 2003/06/25 17:44:03 version 1.15.4.1, 2003/07/16 21:45:25
Line 239 
Line 239 
    return((PEGASUS_THREAD_TYPE)GetCurrentThreadId());    return((PEGASUS_THREAD_TYPE)GetCurrentThreadId());
 } }
  
   // l10n start
   typedef PEGASUS_THREAD_KEY_TYPE DWORD;
   
   inline Uint32 pegasus_key_create(PEGASUS_THREAD_KEY_TYPE * key)
   {
           // Note: destructor is not supported
           *key = TlsAlloc();
           if (*key == -1)
                   return 1;
           return 0;
   }
   
   inline Uint32 pegasus_key_delete(PEGASUS_THREAD_KEY_TYPE key)
   {
           if (TlsFree(key))
                   return 0;
           return 1;
   }
   
   inline void * pegasus_get_thread_specific(PEGASUS_THREAD_KEY_TYPE key)
   {
           return TlsGetValue(key);
   }
   
   inline Uint32 pegasus_set_thread_specific(PEGASUS_THREAD_KEY_TYPE key,
                                                                                    void * value)
   {
           if (TlsSetValue(key, value))
                   return 0;
           return 1;
   }
   // l10n end
   
 inline void PEGASUS_COMMON_LINKAGE exit_thread(PEGASUS_THREAD_RETURN rc) inline void PEGASUS_COMMON_LINKAGE exit_thread(PEGASUS_THREAD_RETURN rc)
 { {
   _endthreadex(rc);   _endthreadex(rc);


Legend:
Removed from v.1.15  
changed lines
  Added in v.1.15.4.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2