• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//  (C) Copyright John Maddock 2001.
2//  Use, modification and distribution are subject to the
3//  Boost Software License, Version 1.0. (See accompanying file
4//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6//  See http://www.boost.org/libs/config for most recent version.
7
8//  MACRO:         BOOST_HAS_BETHREADS
9//  TITLE:         BeOS Threads
10//  DESCRIPTION:   The platform supports BeOS style threads.
11
12#include <OS.h>
13
14
15namespace boost_has_bethreads{
16
17int test()
18{
19   sem_id mut = create_sem(1, "test");
20   if(mut > 0)
21   {
22      acquire_sem(mut);
23      release_sem(mut);
24      delete_sem(mut);
25   }
26   return 0;
27}
28
29}
30
31
32
33
34
35