wp_cache_writers_exit()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

wp_cache_writers_exit();

Code of wp_cache_writers_exit() WPSCache 1.8

function wp_cache_writers_exit() {
	global $mutex, $wp_cache_mutex_disabled, $use_flock;

	if ( defined( 'WPSC_DISABLE_LOCKING' ) || ( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled ) ) {
		return true;
	}

	if ( ! $mutex ) {
		wp_cache_debug( '(writers exit) mutex lock not created. not caching.', 2 );
		return false;
	}

	if ( $use_flock ) {
		wp_cache_debug( 'releasing lock using flock()', 5 );
		flock( $mutex, LOCK_UN );
	} else {
		wp_cache_debug( 'releasing lock using sem_release() and sem_remove()', 5 );
		@sem_release( $mutex );
		if ( defined( 'WPSC_REMOVE_SEMAPHORE' ) ) {
			@sem_remove( $mutex );
		}
	}
}