summaryrefslogtreecommitdiffstats
path: root/chromium/sandbox/linux/services/thread_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/sandbox/linux/services/thread_helpers.h')
-rw-r--r--chromium/sandbox/linux/services/thread_helpers.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/chromium/sandbox/linux/services/thread_helpers.h b/chromium/sandbox/linux/services/thread_helpers.h
index 651e5d9c501..377742a539a 100644
--- a/chromium/sandbox/linux/services/thread_helpers.h
+++ b/chromium/sandbox/linux/services/thread_helpers.h
@@ -6,16 +6,19 @@
#define SANDBOX_LINUX_SERVICES_THREAD_HELPERS_H_
#include "base/basictypes.h"
+#include "sandbox/sandbox_export.h"
namespace base { class Thread; }
namespace sandbox {
-class ThreadHelpers {
+class SANDBOX_EXPORT ThreadHelpers {
public:
// Check whether the current process is single threaded. |proc_self_tasks|
- // should be a file descriptor to /proc/self/task/ and remains owned by the
- // caller.
+ // can be a file descriptor to /proc/self/task/ and remains owned by the
+ // caller or -1.
+ // If |proc_self_tasks| is -1, this method will open /proc/self/task/ and
+ // crash if it cannot.
static bool IsSingleThreaded(int proc_self_task);
// Stop |thread| and ensure that it does not have an entry in
@@ -28,6 +31,6 @@ class ThreadHelpers {
DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadHelpers);
};
-} // namespace content
+} // namespace sandbox
#endif // SANDBOX_LINUX_SERVICES_THREAD_HELPERS_H_