This file is indexed.

/usr/include/urg/Semaphore.h is in liburg0-dev 0.8.18-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef QRK_SEMAPHORE_H
#define QRK_SEMAPHORE_H

/*!
  \file
  \brief �Z�}�t�H�Ǘ�

  \author Satofumi KAMIMURA

  $Id: Semaphore.h 1949 2011-05-06 07:18:01Z satofumi $

  �h�L�������g�́ASDL �}�j���A�����Q�l�ɂ��Ă���
*/

#include <memory>
#include <cstddef>


namespace qrk
{
  /*!
    \brief �Z�}�t�H�Ǘ�
  */
  class Semaphore
  {
    Semaphore(void);
    Semaphore(const Semaphore& rhs);
    Semaphore& operator = (const Semaphore& rhs);

    struct pImpl;
    const std::auto_ptr<pImpl> pimpl;

  public:
    /*!
      \brief �R���X�g���N�^

      \param[in] initial_value �����l
    */
    explicit Semaphore(size_t initial_value);
    ~Semaphore(void);


    /*!
      \brief �f�N�������g

      �Z�}�t�H�����b�N���A�Z�}�t�H�̒l���[���̂Ƃ��́A�X���b�h���~������
    */
    void wait(void);


    /*!
      \brief �X���b�h����~���Ȃ��f�N�������g

      �X���b�h���~�������ɁA�Z�}�t�H�̃��b�N�����݂�

      \retval true ���b�N�ɐ���
      \retval false ���b�N�Ɏ��s or �G���[
    */
    bool tryWait(void);


    /*!
      \brief �C���N�������g

      �Z�}�t�H�̒l�����Z����
    */
    void post(void);


    /*!
      \brief �Z�}�t�H�l�̎擾

      \return �Z�}�t�H�l
    */
    size_t value(void);
  };
}

#endif /*! QRK_SEMAPHORE_H */