diff options
-rw-r--r-- | pr/include/prcmon.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pr/include/prcmon.h b/pr/include/prcmon.h index 2ca0816c..8d4328b8 100644 --- a/pr/include/prcmon.h +++ b/pr/include/prcmon.h @@ -68,6 +68,12 @@ PR_EXTERN(PRStatus) PR_CNotify(void *address); */ PR_EXTERN(PRStatus) PR_CNotifyAll(void *address); +/* +** Set a callback to be invoked each time a monitor is recycled from the cache +** freelist, with the monitor's cache-key passed in address. +*/ +PR_EXTERN(void) PR_CSetOnMonitorRecycle(void (*callback)(void *address)); + PR_END_EXTERN_C #endif /* prcmon_h___ */ |