Ignore:
Timestamp:
Nov 21, 2017, 10:24:14 AM (6 years ago)
Author:
djay
Message:

HPC support update. Add inputs for create options in Gdal_Dem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/service_internal.h

    r680 r854  
    6363 * Number of time the ZOO-Kernel will try to acquire lock
    6464 */
    65 #define ZOO_LOCK_MAX_RETRY 10
     65#define ZOO_LOCK_MAX_RETRY 180
    6666
    6767#include <sys/stat.h>
     
    8585#endif
    8686
     87#include <fcntl.h>
     88 
    8789#include "service.h"
    8890
     
    9496#endif
    9597
     98/**
     99 * The lock structure used by the ZOO-Kernel to ensure atomicity of operations
     100 *
     101 */
     102typedef 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
     108static zooLock** zoo_file_locks=NULL;
     109static int zoo_file_locks_cnt=0;
     110
    96111#ifdef __cplusplus
    97112extern "C" {
    98113#endif
    99114
     115 
    100116  ZOO_DLL_EXPORT char *readVSIFile(maps*,const char*);
    101117  ZOO_DLL_EXPORT int  setOutputValue( maps*, const char*, char*, size_t);
    102118  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*);
    103122
    104123  ZOO_DLL_EXPORT void unhandleStatus(maps*);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png