This file is indexed.

/usr/include/osl/misc/nonBlockDelete.h is in libosl-dev 0.6.0-3.3.

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
/* nonBlockDelete.h
 */
#ifndef OSL_NONBLOCKDELETE_H
#define OSL_NONBLOCKDELETE_H

#include <boost/shared_ptr.hpp>
#include <boost/utility.hpp>

#ifdef USE_BOOST_POOL_ALLOCATOR
#  define DISABLE_NON_BLOCK_DELETE
#endif

namespace osl
{
  namespace misc
  {
    class NonBlockDelete : boost::noncopyable
    {
    public:
      /** 別スレッドに消去を依頼する */
      template <class T>
      static void planDelete(T *ptr)
      {
	boost::shared_ptr<void> holder(ptr); // shared_ptr preserves T
	resetAny(holder);
      }

      /**
       * make ptr empty immediately
       */
      template <class T>
      static void reset(boost::shared_ptr<T>& ptr)
      {
#ifndef DISABLE_NON_BLOCK_DELETE
	boost::shared_ptr<void> holder;
	holder = ptr;
#endif
	ptr.reset();
#ifndef DISABLE_NON_BLOCK_DELETE
	resetAny(holder);
#endif
      }
      static void resetAny(boost::shared_ptr<void>&);

      /**
       * 空になるまで待つまたは自分で消去する 
       */
      static void deleteAll();
      static bool deleteOne();
      static int waiting();
    private:
      static NonBlockDelete& instance();

      NonBlockDelete();
      ~NonBlockDelete();
      void push_back(boost::shared_ptr<void>&);

      class Queue;
      boost::shared_ptr<Queue> queue;

      struct Runner;
      friend struct Runner;
    };
    
  }
  using misc::NonBlockDelete;
}

#endif /* OSL_NONBLOCKDELETE_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; coding:utf-8
// ;;; End: