From 975edf09cd4b7dbaf250bf39c9f4db722c924fd8 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Fri, 25 Nov 2005 22:35:59 +0000 Subject: [PATCH] added isEmpty() --- direct/src/distributed/CRCache.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/distributed/CRCache.py b/direct/src/distributed/CRCache.py index de0ef74e74..00b79d92a4 100644 --- a/direct/src/distributed/CRCache.py +++ b/direct/src/distributed/CRCache.py @@ -11,6 +11,9 @@ class CRCache: self.dict = {} self.fifo = [] + def isEmpty(self): + return len(self.fifo) == 0 + def flush(self): """ Delete each item in the cache then clear all references to them