benchtest.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. *
  3. *
  4. * --------------------------------------------------------------------------
  5. *
  6. * Pthreads-embedded (PTE) - POSIX Threads Library for embedded systems
  7. * Copyright(C) 2008 Jason Schmidlapp
  8. *
  9. * Contact Email: [email protected]
  10. *
  11. *
  12. * Based upon Pthreads-win32 - POSIX Threads Library for Win32
  13. * Copyright(C) 1998 John E. Bossom
  14. * Copyright(C) 1999,2005 Pthreads-win32 contributors
  15. *
  16. * Contact Email: [email protected]
  17. *
  18. * The original list of contributors to the Pthreads-win32 project
  19. * is contained in the file CONTRIBUTORS.ptw32 included with the
  20. * source code distribution. The list can also be seen at the
  21. * following World Wide Web location:
  22. * http://sources.redhat.com/pthreads-win32/contributors.html
  23. *
  24. * This library is free software; you can redistribute it and/or
  25. * modify it under the terms of the GNU Lesser General Public
  26. * License as published by the Free Software Foundation; either
  27. * version 2 of the License, or (at your option) any later version.
  28. *
  29. * This library is distributed in the hope that it will be useful,
  30. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  32. * Lesser General Public License for more details.
  33. *
  34. * You should have received a copy of the GNU Lesser General Public
  35. * License along with this library in the file COPYING.LIB;
  36. * if not, write to the Free Software Foundation, Inc.,
  37. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  38. *
  39. */
  40. //#include "../config.h"
  41. //extern BOOL (WINAPI *ptw32_try_enter_critical_section)(LPCRITICAL_SECTION);
  42. //extern HINSTANCE ptw32_h_kernel32;
  43. #define PTW32_OBJECT_AUTO_INIT ((void *) -1)
  44. void dummy_call(int * a);
  45. void interlocked_inc_with_conditionals(int *a);
  46. void interlocked_dec_with_conditionals(int *a);
  47. /****************************************************************************************/