1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 #ifndef DS21_LOCK_H
  12 #define DS21_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_ds21_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_ds21_lock_finalize(pmix_common_dstor_lock_ctx_t *lock_ctx);
  23 pmix_status_t pmix_ds21_lock_rd_get(pmix_common_dstor_lock_ctx_t lock_ctx);
  24 pmix_status_t pmix_ds21_lock_wr_get(pmix_common_dstor_lock_ctx_t lock_ctx);
  25 pmix_status_t pmix_ds21_lock_rd_rel(pmix_common_dstor_lock_ctx_t lock_ctx);
  26 pmix_status_t pmix_ds21_lock_wr_rel(pmix_common_dstor_lock_ctx_t lock_ctx);
  27 
  28 extern pmix_common_lock_callbacks_t pmix_ds21_lock_module;
  29 
  30 #endif