Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

44 wiersze
1.5 KiB

  1. /*
  2. * Copyright © 2008 Ryan Lortie
  3. * Copyright © 2010 Codethink Limited
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the licence, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the
  17. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18. * Boston, MA 02111-1307, USA.
  19. *
  20. * Author: Ryan Lortie <desrt@desrt.ca>
  21. */
  22. #ifndef __G_BITLOCK_H__
  23. #define __G_BITLOCK_H__
  24. #include <glib/gtypes.h>
  25. #if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
  26. #error "Only <glib.h> can be included directly."
  27. #endif
  28. G_BEGIN_DECLS
  29. void g_bit_lock (volatile gint *address,
  30. gint lock_bit);
  31. gboolean g_bit_trylock (volatile gint *address,
  32. gint lock_bit);
  33. void g_bit_unlock (volatile gint *address,
  34. gint lock_bit);
  35. G_END_DECLS
  36. #endif /* __G_BITLOCK_H_ */