00001 #ifndef __INSTANTIO_InstantIODEF_H
00002 #define __INSTANTIO_InstantIODEF_H
00003
00004 #ifdef _MSC_VER
00005 # pragma once
00006 #endif
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifdef DEBUG_DEADLOCK
00029 # ifdef _WIN32
00030 # include <winsock2.h>
00031 # endif
00032 # include <Medusa/Thread.h>
00033 # ifdef __sgi
00034 # include <stdio.h>
00035 # else
00036 # include <cstdio>
00037 # endif
00038 # define DEBUG_LOCK(method) printf("Debug_Lock %s (threadID = %li)\n", method, Medusa::Thread::self())
00039 # define DEBUG_UNLOCK(method) printf("Debug_Unlock %s (threadID = %li)", method, Medusa::Thread::self())
00040 #else
00041 # define DEBUG_LOCK(method)
00042 # define DEBUG_UNLOCK(method)
00043 #endif
00044
00045 #if defined(_WIN32)
00046 # ifdef InstantIO_EXPORTS
00047 # define INSTANTIO_DLLMAPPING __declspec(dllexport)
00048 # else
00049 # define INSTANTIO_DLLMAPPING __declspec(dllimport)
00050 # endif
00051 #else
00052 # define INSTANTIO_DLLMAPPING
00053 #endif
00054
00055 #endif // __INSTANTIO_InstantIODEF_H