HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
henv.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: henv.h ( tools Library, C++)
7  *
8  * COMMENTS: Generic environment variable handling routines.
9  */
10 
11 #ifndef __henv_h__
12 #define __henv_h__
13 
14 #include "tools_API.h"
15 #include <SYS/SYS_Deprecated.h>
16 
17 tools_API extern void HoudiniSetenv(const char *name,
18  const char *value);
19 SYS_DEPRECATED(14.0)
20 tools_API extern void HoudiniPutenv(const char *namevalue);
21 tools_API extern const char *HoudiniGetenv(const char *name);
22 tools_API extern void HoudiniUnsetenv(const char *name);
23 tools_API extern char * const *HoudiniGetenvlist();
24 
25 /// RAII class for serializing work that will read/write environment variables.
26 /// HouiniSetenv()/HoudiniGetenv() calls are already serialized with this mutex
27 /// but this is intended for use on non-main threads and code that doesn't go
28 /// through the Houdini.*() API. These include:
29 /// mktime(), ctime(), localtime(), strftime(), gmtime(), etc.
31 {
32 public:
33  TOOLS_EnvLockGuard();
34  ~TOOLS_EnvLockGuard();
35 
36  TOOLS_EnvLockGuard(const TOOLS_EnvLockGuard &) = delete;
37  TOOLS_EnvLockGuard &operator=(const TOOLS_EnvLockGuard &) = delete;
38 };
39 
40 #endif
#define SYS_DEPRECATED(__V__)
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
Definition: thread.h:623
tools_API void HoudiniSetenv(const char *name, const char *value)
tools_API void HoudiniPutenv(const char *namevalue)
GLuint const GLchar * name
Definition: glcorearb.h:786
tools_API char *const * HoudiniGetenvlist()
LeafData & operator=(const LeafData &)=delete
#define tools_API
Definition: tools_API.h:10
Definition: core.h:1131
tools_API void HoudiniUnsetenv(const char *name)
tools_API const char * HoudiniGetenv(const char *name)