Reference Guide C API www.spreadconcepts.com


C API
Replicated Hash Table
Version 2.0


rht_on_trash_cb
  void rht_on_trash_cb(rht r, rht_code err, const void *key_cntxt);


Parameters
  r replica being garbage collected
  err error code if any at the time the replica is being garbage collected (full list)
  key_cntxt user context passed in upon the creation of the replica


Return Values
  none


Description
 

on_trash_cb is called when a replica is completely garbage collected. The time between a successful rht_create call and the on_trash_cb for that replica is the lifetime of the replica. The main purpose of this call is to give the user a chance to reclaim resources from their key_cntxt if necessary.



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


Also See
  RHT reference guide


Copyright © 2004, Spread Concepts LLC, All rights reserved