Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3152635
qbtsafe.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
qbtsafe.h
View Options
/*
* Copyright (C) 2010 Red Hat, Inc.
*
* Author: Angus Salkeld <asalkeld@redhat.com>
*
* This file is part of libqb.
*
* libqb is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*
* libqb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with libqb. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef QB_TSAFE_H_DEFINED
#define QB_TSAFE_H_DEFINED
/**
* Initialize the thread safe checker.
*
* It will make a read-only copy of your environ array
* and (if tsafe is on) use this copy for getenv() calls.
* @param envp your environment (as passed into main())
*/
extern void qb_tsafe_init (char **envp);
/**
* turn on the thread safe checker.
*
* It will assert() on any call to a thread unsafe system call
* as defined in pthread(5)
*/
extern void qb_tsafe_on (void);
/**
* turn off the thread safe checker.
*
* It is fine to do this if you have only one thread.
*/
extern void qb_tsafe_off (void);
#endif /* QB_TSAFE_H_DEFINED */
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Feb 25, 1:22 AM (20 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1464586
Default Alt Text
qbtsafe.h (1 KB)
Attached To
Mode
rQ LibQB
Attached
Detach File
Event Timeline
Log In to Comment