1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 #ifndef DS12_LOCK_H
  12 #define DS12_LOCK_H
  13 
  14 #include <src/include/pmix_config.h>
  15 #include <pmix_common.h>
  16 
  17 #include "src/mca/common/dstore/dstore_common.h"
  18 
  19 pmix_status_t pmix_gds_ds12_lock_init(pmix_common_dstor_lock_ctx_t *lock_ctx,
  20                                       const char *base_path,  const char *name,
  21                                       uint32_t local_size, uid_t uid, bool setuid);
  22 void pmix_ds12_lock_finalize(pmix_common_dstor_lock_ctx_t *lock_ctx);
  23 pmix_status_t pmix_ds12_lock_rd_get(pmix_common_dstor_lock_ctx_t lock_ctx);
  24 pmix_status_t pmix_ds12_lock_wr_get(pmix_common_dstor_lock_ctx_t lock_ctx);
  25 pmix_status_t pmix_ds12_lock_rw_rel(pmix_common_dstor_lock_ctx_t lock_ctx);
  26 
  27 extern pmix_common_lock_callbacks_t pmix_ds12_lock_module;
  28 
  29 #endif