Function: semanticdb-find-need-cache-update-p

semanticdb-find-need-cache-update-p is a byte-compiled function defined in db-find.el.gz.

Signature

(semanticdb-find-need-cache-update-p TABLE)

Documentation

Non-nil if the semanticdb TABLE cache needs to be updated.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/db-find.el.gz
(defun semanticdb-find-need-cache-update-p (table)
  "Non-nil if the semanticdb TABLE cache needs to be updated."
  ;; If we were passed in something related to a TABLE,
  ;; do a caching lookup.
  (let* ((index (semanticdb-get-table-index table))
	 (cache (when index (oref index include-path)))
	 (incom (semanticdb-find-incomplete-cache-entries-p cache))
	 (unl (semanticdb-find-throttle-active-p 'unloaded))
	 )
    (if (and
	 cache ;; Must have a cache
	 (or
	  ;; If all entries are "full", or if 'unloaded
	  ;; OR
	  ;; is not in the throttle, it is ok to use the cache.
	  (not incom) (not unl)
	  ))
	nil
      ;;cache
      ;; ELSE
      ;;
      ;; We need an update.
      t))
  )