SyncObject is now the base type for SyncCounter.
Data to be used by all sync types is stored in
the base object. SyncCounter can be safely cast
to SyncObject, and a SyncObject can be cast to
the correct type based on SyncObject::type.
Signed-off-by: James Jones
---
Xext/sync.c| 95 +++
On Mon, 6 Dec 2010 14:53:16 -0800, James Jones wrote:
> -if (!AddResource(id, RTCounter, (pointer) pCounter))
> +if (!(pSync = (SyncObject *)malloc(syncSize)))
> + return NULL;
> +
> +if (!AddResource(id, resType, (pointer) pSync))
> {
> - free(pCounter);
> + free(pSy