- Timestamp:
- Nov 21, 2017, 10:24:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/service_internal.h
r680 r854 63 63 * Number of time the ZOO-Kernel will try to acquire lock 64 64 */ 65 #define ZOO_LOCK_MAX_RETRY 1 065 #define ZOO_LOCK_MAX_RETRY 180 66 66 67 67 #include <sys/stat.h> … … 85 85 #endif 86 86 87 #include <fcntl.h> 88 87 89 #include "service.h" 88 90 … … 94 96 #endif 95 97 98 /** 99 * The lock structure used by the ZOO-Kernel to ensure atomicity of operations 100 * 101 */ 102 typedef struct zooLock{ 103 struct flock lock; //!< The lock 104 FILE* lockfile; //!< The pointer to the lock file 105 char* filename; //!< The filename to lock 106 } zooLock; 107 108 static zooLock** zoo_file_locks=NULL; 109 static int zoo_file_locks_cnt=0; 110 96 111 #ifdef __cplusplus 97 112 extern "C" { 98 113 #endif 99 114 115 100 116 ZOO_DLL_EXPORT char *readVSIFile(maps*,const char*); 101 117 ZOO_DLL_EXPORT int setOutputValue( maps*, const char*, char*, size_t); 102 118 ZOO_DLL_EXPORT char* getInputValue( maps*,const char*,size_t*); 119 120 ZOO_DLL_EXPORT struct zooLock* lockFile(maps*,const char*,const char); 121 ZOO_DLL_EXPORT int unlockFile(maps*,struct zooLock*); 103 122 104 123 ZOO_DLL_EXPORT void unhandleStatus(maps*);
Note: See TracChangeset
for help on using the changeset viewer.