Reference Guide C API www.spreadconcepts.com


C API
Replicated Hash Table
Version 2.0


rht_is_owner
  rht_code rht_is_owner(rht r, long *grab_cnt);


Parameters
  r replica to be queried
  grab_cnt recursive lock count of calling thread on replica


Return Values
  0 on success
  non-zero for error


Description
  rht_is_owner returns the recursive lock count of this thread on a replica. If grab_cnt is greater than zero, then the calling thread currently holds the lock and would need to call rht_drop grab_cnt times before releasing it. If grab_cnt is zero, then this thread does not currently hold the replica lock.


Requirements
  Header: Declared in rht.h
Library: Use rht.lib
Version: 2.0


Also See
  RHT reference guide, local lock operations


Copyright © 2004, Spread Concepts LLC, All rights reserved