- Main Page
- Classes
- Files
- Related Pages

- Class List
- Class Hierarchy
- Class Members

# GDALRasterBlock Class Reference

`#include <gdal_priv.h>`

List of all members.

## Public Member Functions
| GDALRasterBlock (GDALRasterBand *, int, int)
CPLErr | Internalize (void)
void | Touch (void)
void | MarkDirty (void)
void | MarkClean (void)
void | AddLock (void)
void | DropLock (void)
void | Detach ()
CPLErr | Write ()
GDALDataType | GetDataType ()
int | GetXOff ()
int | GetYOff ()
int | GetXSize ()
int | GetYSize ()
int | GetDirty ()
int | GetLockCount ()
void * | GetDataRef (void)
GDALRasterBand * | GetBand ()
## Static Public Member Functions
static int | FlushCacheBlock ()
static void | Verify ()
static int | SafeLockBlock (GDALRasterBlock **)

## Detailed Description

A cached raster block ... to be documented later.

## Member Function Documentation

int GDALRasterBlock::SafeLockBlock | ( | GDALRasterBlock ** | ppBlock | ) | `[static]`

Safely lock block.

This method locks a GDALRasterBlock (and touches it) in a thread-safe manner. The global block cache mutex is held while locking the block, in order to avoid race conditions with other threads that might be trying to expire the block at the same time. The block pointer may be safely NULL, in which case this method does nothing.

Parameters:

  | ppBlock | Pointer to the block pointer to try and lock/touch.

The documentation for this class was generated from the following files:

- gdal_priv.h
- gdalrasterblock.cpp

Generated for GDAL by 1.5.1.