php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
shared_alloc_win32.c File Reference
#include "php.h"
#include "ZendAccelerator.h"
#include "zend_shared_alloc.h"
#include "zend_accelerator_util_funcs.h"
#include "zend_execute.h"
#include "zend_system_id.h"
#include "SAPI.h"
#include "tsrm_win32.h"
#include "win32/winutil.h"
#include <winbase.h>
#include <process.h>
#include <LMCONS.H>

Go to the source code of this file.

Macros

#define ACCEL_FILEMAP_NAME   "ZendOPcache.SharedMemoryArea"
 
#define ACCEL_MUTEX_NAME   "ZendOPcache.SharedMemoryMutex"
 
#define ACCEL_EVENT_SOURCE   "Zend OPcache"
 
#define ACCEL_BASE_POINTER_SIZE   (2 * sizeof(void*))
 
#define MAX_MAP_RETRIES   25
 

Functions

void zend_shared_alloc_create_lock (void)
 
void zend_shared_alloc_lock_win32 (void)
 
void zend_shared_alloc_unlock_win32 (void)
 

Variables

const zend_shared_memory_handlers zend_alloc_win32_handlers
 

Macro Definition Documentation

◆ ACCEL_BASE_POINTER_SIZE

#define ACCEL_BASE_POINTER_SIZE   (2 * sizeof(void*))

Definition at line 40 of file shared_alloc_win32.c.

◆ ACCEL_EVENT_SOURCE

#define ACCEL_EVENT_SOURCE   "Zend OPcache"

Definition at line 37 of file shared_alloc_win32.c.

◆ ACCEL_FILEMAP_NAME

#define ACCEL_FILEMAP_NAME   "ZendOPcache.SharedMemoryArea"

Definition at line 35 of file shared_alloc_win32.c.

◆ ACCEL_MUTEX_NAME

#define ACCEL_MUTEX_NAME   "ZendOPcache.SharedMemoryMutex"

Definition at line 36 of file shared_alloc_win32.c.

◆ MAX_MAP_RETRIES

#define MAX_MAP_RETRIES   25

Definition at line 45 of file shared_alloc_win32.c.

Function Documentation

◆ zend_shared_alloc_create_lock()

void zend_shared_alloc_create_lock ( void )

Definition at line 93 of file shared_alloc_win32.c.

◆ zend_shared_alloc_lock_win32()

void zend_shared_alloc_lock_win32 ( void )

Definition at line 103 of file shared_alloc_win32.c.

◆ zend_shared_alloc_unlock_win32()

void zend_shared_alloc_unlock_win32 ( void )

Definition at line 112 of file shared_alloc_win32.c.

Variable Documentation

◆ zend_alloc_win32_handlers

const zend_shared_memory_handlers zend_alloc_win32_handlers
Initial value:
= {
create_segments,
detach_segment,
segment_type_size
}

Definition at line 357 of file shared_alloc_win32.c.