home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / src / mingw-runtime-19991107 / mingw / mthr_stub.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-30  |  748 b   |  38 lines

  1. /*
  2.  * mthr_stub.c
  3.  *
  4.  * Implement Mingw thread-support stubs for single-threaded C++ apps.
  5.  *
  6.  * This file is used by if gcc is built with --enable-threads=win32 and
  7.  * iff gcc does *NOT* use -mthreads option. 
  8.  *
  9.  * The -mthreads implementation is in mthr.c.
  10.  *
  11.  * Created by Mumit Khan  <khan@nanotech.wisc.edu>
  12.  *
  13.  */
  14.  
  15. #define WIN32_LEAN_AND_MEAN
  16. #include <windows.h>
  17. #undef WIN32_LEAN_AND_MEAN
  18. #include <assert.h>
  19.  
  20. /*
  21.  * __mingwthr_register_key_dtor (DWORD key, void (*dtor) (void *))
  22.  *
  23.  * Public interface called by C++ exception handling mechanism in
  24.  * libgcc (cf: __gthread_key_create).
  25.  *
  26.  * THIS SHOULD NEVER BE CALLED!
  27.  *
  28.  */
  29.  
  30. int
  31. __mingwthr_key_dtor (DWORD key, void (*dtor) (void *))
  32. {
  33.   assert (0);
  34.   /* NOTREACHED */
  35.   return 0;
  36. }
  37.  
  38.