[PATCH xserver (v4) 02/10] Create SyncObject base type.

2010-12-06 Thread James Jones
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 +++

Re: [PATCH xserver (v4) 02/10] Create SyncObject base type.

2010-12-06 Thread Keith Packard
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