Changeset 411 for WizardsToolkit/trunk

Show
Ignore:
Timestamp:
10/18/09 19:17:20 (5 weeks ago)
Author:
cristy
Message:
 
Location:
WizardsToolkit/trunk
Files:
15 modified

Legend:

Unmodified
Added
Removed
  • WizardsToolkit/trunk/config/configure.xml

    r386 r411  
    1818  <configure name="LIB_VERSION" value="0x107" /> 
    1919  <configure name="LIB_VERSION_NUMBER" value="1,0,7,0" /> 
    20   <configure name="RELEASE_DATE" value="2009-10-15" /> 
     20  <configure name="RELEASE_DATE" value="2009-10-18" /> 
    2121  <configure name="COPYRIGHT" value="Copyright (C) 1999-2009 ImageMagick Studio LLC" /> 
    2222  <configure name="WEBSITE" value="http://www.wizards-toolkit.org" /> 
  • WizardsToolkit/trunk/wizard/log.c

    r242 r411  
    231231%                                                                             % 
    232232%                                                                             % 
    233 +   D e s t r o y L o g L i s t                                               % 
    234 %                                                                             % 
    235 %                                                                             % 
    236 %                                                                             % 
    237 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    238 % 
    239 %  DestroyLogList() deallocates memory associated with the log list. 
    240 % 
    241 %  The format of the DestroyLogList method is: 
    242 % 
    243 %      DestroyLogList(void) 
     233+   D e s t r o y L o g F a c i l i t y                                       % 
     234%                                                                             % 
     235%                                                                             % 
     236%                                                                             % 
     237%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     238% 
     239%  DestroyLogFacility() destroys the log facility. 
     240% 
     241%  The format of the DestroyLogFacility method is: 
     242% 
     243%      DestroyLogFacility(void) 
    244244% 
    245245*/ 
     
    270270} 
    271271 
    272 WizardExport void DestroyLogList(void) 
     272WizardExport void DestroyLogFacility(void) 
    273273{ 
    274274  AcquireSemaphoreInfo(&log_semaphore); 
     
    588588    } 
    589589  return(log_list != (LinkedListInfo *) NULL ? WizardTrue : WizardFalse); 
     590} 
     591 
     592/* 
     593%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     594%                                                                             % 
     595%                                                                             % 
     596%                                                                             % 
     597+   I n s t a n t i a t e L o g F a c i l i t y                               % 
     598%                                                                             % 
     599%                                                                             % 
     600%                                                                             % 
     601%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     602% 
     603%  InstantiateLogFacility() instantiates the log facility. 
     604% 
     605%  The format of the InstantiateLogFacility method is: 
     606% 
     607%      WizardBooleanType InstantiateLogFacility(void) 
     608% 
     609*/ 
     610WizardExport WizardBooleanType InstantiateLogFacility(void) 
     611{ 
     612  AcquireSemaphoreInfo(&log_semaphore); 
     613  RelinquishSemaphoreInfo(log_semaphore); 
     614  return(WizardFalse); 
    590615} 
    591616 
  • WizardsToolkit/trunk/wizard/log.h

    r1 r411  
    6868 
    6969extern WizardExport WizardBooleanType 
     70  InstantiateLogFacility(void), 
    7071  IsEventLogging(void), 
    7172  ListLogInfo(FILE *,ExceptionInfo *), 
     
    7980extern WizardExport void 
    8081  CloseWizardLog(void), 
    81   DestroyLogList(void), 
     82  DestroyLogFacility(void), 
    8283  SetLogFormat(const char *), 
    8384  SetLogPreamble(const char *); 
  • WizardsToolkit/trunk/wizard/mime.c

    r1 r411  
    132132%                                                                             % 
    133133%                                                                             % 
    134 +   D e s t r o y M i m e L i s t                                             % 
    135 %                                                                             % 
    136 %                                                                             % 
    137 %                                                                             % 
    138 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    139 % 
    140 %  DestroyMimeList() deallocates memory associated with the mime list. 
    141 % 
    142 %  The format of the DestroyMimeList method is: 
    143 % 
    144 %      DestroyMimeList(void) 
     134+   D e s t r o y M i m e F a c i l i t y                                     % 
     135%                                                                             % 
     136%                                                                             % 
     137%                                                                             % 
     138%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     139% 
     140%  DestroyMimeFacility() destroys the mime facility. 
     141% 
     142%  The format of the DestroyMimeFacility method is: 
     143% 
     144%      DestroyMimeFacility(void) 
    145145% 
    146146*/ 
     
    166166} 
    167167 
    168 WizardExport void DestroyMimeList(void) 
     168WizardExport void DestroyMimeFacility(void) 
    169169{ 
    170170  AcquireSemaphoreInfo(&mime_semaphore); 
     
    671671%                                                                             % 
    672672%                                                                             % 
     673+   I n s t a n t i a t e M i m e F a c i l i t y                             % 
     674%                                                                             % 
     675%                                                                             % 
     676%                                                                             % 
     677%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     678% 
     679%  InstantiateMimeFacility() instantiates the mime facility. 
     680% 
     681%  The format of the InstantiateMimeFacility method is: 
     682% 
     683%      WizardBooleanType InstantiateMimeFacility(void) 
     684% 
     685*/ 
     686WizardExport WizardBooleanType InstantiateMimeFacility(void) 
     687{ 
     688  AcquireSemaphoreInfo(&mime_semaphore); 
     689  RelinquishSemaphoreInfo(mime_semaphore); 
     690  return(WizardTrue); 
     691} 
     692 
     693/* 
     694%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     695%                                                                             % 
     696%                                                                             % 
     697%                                                                             % 
    673698%  L i s t M i m e I n f o                                                    % 
    674699%                                                                             % 
  • WizardsToolkit/trunk/wizard/mime.h

    r1 r411  
    3535 
    3636extern WizardExport WizardBooleanType 
     37  InstantiateMimeFacility(void), 
    3738  ListMimeInfo(FILE *,ExceptionInfo *), 
    3839  LoadMimeLists(const char *,ExceptionInfo *); 
     
    4344 
    4445extern WizardExport void 
    45   DestroyMimeList(void); 
     46  DestroyMimeFacility(void); 
    4647 
    4748#if defined(__cplusplus) || defined(c_plusplus) 
  • WizardsToolkit/trunk/wizard/nt-base.c

    r1 r411  
    330330static BOOL ControlHandler(DWORD type) 
    331331{ 
    332   AsynchronousDestroyWizardResources(); 
     332  AsynchronousDestroyResourceFacility(); 
    333333  return(FALSE); 
    334334} 
  • WizardsToolkit/trunk/wizard/random.c

    r238 r411  
    306306%                                                                             % 
    307307%                                                                             % 
    308 +   D e s t r o y R a n d o m R e s e r v i o r                               % 
    309 %                                                                             % 
    310 %                                                                             % 
    311 %                                                                             % 
    312 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    313 % 
    314 %  DestroyRandomReservoir() deallocates memory associated with the random 
    315 %  reservoir. 
    316 % 
    317 %  The format of the DestroyRandomReservoir method is: 
    318 % 
    319 %      DestroyRandomReservoir(void) 
    320 % 
    321 */ 
    322 WizardExport void DestroyRandomReservoir(void) 
     308+   D e s t r o y R a n d o m F a c i l i t y                                 % 
     309%                                                                             % 
     310%                                                                             % 
     311%                                                                             % 
     312%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     313% 
     314%  DestroyRandomFacility() destroys the random facility. 
     315% 
     316%  The format of the DestroyRandomFacility method is: 
     317% 
     318%      DestroyRandomFacility(void) 
     319% 
     320*/ 
     321WizardExport void DestroyRandomFacility(void) 
    323322{ 
    324323  AcquireSemaphoreInfo(&random_semaphore); 
     
    776775%                                                                             % 
    777776%                                                                             % 
     777+   I n s t a n t i a t e R a n d o m F a c i l i t y                         % 
     778%                                                                             % 
     779%                                                                             % 
     780%                                                                             % 
     781%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     782% 
     783%  InstantiateRandomFacility() instantiates the random facility. 
     784% 
     785%  The format of the InstantiateRandomFacility method is: 
     786% 
     787%      InstantiateRandomFacility(void) 
     788% 
     789*/ 
     790WizardExport WizardBooleanType InstantiateRandomFacility(void) 
     791{ 
     792  AcquireSemaphoreInfo(&random_semaphore); 
     793  RelinquishSemaphoreInfo(random_semaphore); 
     794  return(WizardTrue); 
     795} 
     796 
     797/* 
     798%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     799%                                                                             % 
     800%                                                                             % 
     801%                                                                             % 
    778802%   G e t P s e u d o R a n d o m V a l u e                                   % 
    779803%                                                                             % 
  • WizardsToolkit/trunk/wizard/random_.h

    r1 r411  
    4646 
    4747extern WizardExport void 
    48   DestroyRandomReservoir(void), 
     48  DestroyRandomFacility(void), 
    4949  SeedPseudoRandomGenerator(const unsigned long), 
    5050  SetRandomKey(RandomInfo *,const size_t,unsigned char *), 
    5151  SetRandomTrueRandom(const WizardBooleanType); 
     52 
     53extern WizardExport WizardBooleanType 
     54  InstantiateRandomFacility(void); 
    5255 
    5356#if defined(__cplusplus) || defined(c_plusplus) 
  • WizardsToolkit/trunk/wizard/resource.c

    r232 r411  
    449449%                                                                             % 
    450450%                                                                             % 
    451 +   A s y n c h r o n o u s D e s t r o y W i z a r d R e s o u r c e s       % 
    452 %                                                                             % 
    453 %                                                                             % 
    454 %                                                                             % 
    455 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    456 % 
    457 %  AsynchronousDestroyWizardResources() destroys the resource environment. 
    458 %  It differs from DestroyWizardResources() in that it can be called from a 
     451+   A s y n c h r o n o u s D e s t r o y R e s o u r c e F a c i l i t y     % 
     452%                                                                             % 
     453%                                                                             % 
     454%                                                                             % 
     455%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     456% 
     457%  AsynchronousDestroyResourceFacility() destroys the resource environment. 
     458%  It differs from DestroyResourceFacility() in that it can be called from a 
    459459%  asynchronous signal handler. 
    460460% 
    461 %  The format of the DestroyWizardResources() method is: 
    462 % 
    463 %      DestroyWizardResources(void) 
    464 % 
    465 */ 
    466 WizardExport void AsynchronousDestroyWizardResources(void) 
     461%  The format of the DestroyResourceFacility() method is: 
     462% 
     463%      DestroyResourceFacility(void) 
     464% 
     465*/ 
     466WizardExport void AsynchronousDestroyResourceFacility(void) 
    467467{ 
    468468  const char 
     
    490490%                                                                             % 
    491491%                                                                             % 
    492 +   D e s t r o y W i z a r d R e s o u r c e s                               % 
    493 %                                                                             % 
    494 %                                                                             % 
    495 %                                                                             % 
    496 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    497 % 
    498 %  DestroyWizardResources() destroys the resource environment. 
    499 % 
    500 %  The format of the DestroyWizardResources() method is: 
    501 % 
    502 %      DestroyWizardResources(void) 
    503 % 
    504 */ 
    505 WizardExport void DestroyWizardResources(void) 
     492+   D e s t r o y R e s o u r c e F a c i l i t y                             % 
     493%                                                                             % 
     494%                                                                             % 
     495%                                                                             % 
     496%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     497% 
     498%  DestroyResourceFacility() destroys the resource facility. 
     499% 
     500%  The format of the DestroyResourceFacility() method is: 
     501% 
     502%      DestroyResourceFacility(void) 
     503% 
     504*/ 
     505WizardExport void DestroyResourceFacility(void) 
    506506{ 
    507507  AcquireSemaphoreInfo(&resource_semaphore); 
     
    643643%                                                                             % 
    644644%                                                                             % 
    645 +   I n i t i a l i z e W i z a r d R e s o u r c e s                         % 
    646 %                                                                             % 
    647 %                                                                             % 
    648 %                                                                             % 
    649 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    650 % 
    651 %  InitializeWizardResources() initializes the resource environment. 
    652 % 
    653 %  The format of the InitializeWizardResources() method is: 
    654 % 
    655 %      InitializeWizardResources(void) 
     645+   I n s t a n t i a t e R e s o u r c e F a c i l i t y                     % 
     646%                                                                             % 
     647%                                                                             % 
     648%                                                                             % 
     649%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     650% 
     651%  InstantiateResourceFacility() instantiates the resource facility. 
     652% 
     653%  The format of the InstantiateResourceFacility method is: 
     654% 
     655%      WizardBooleanType InstantiateResourceFacility(void) 
    656656% 
    657657*/ 
     
    664664} 
    665665 
    666 WizardExport void InitializeWizardResources(void) 
     666WizardExport WizardBooleanType InstantiateResourceFacility(void) 
    667667{ 
    668668  char 
     
    680680    Set Wizard resource limits. 
    681681  */ 
     682  RelinquishSemaphoreInfo(resource_semaphore); 
    682683  pagesize=(-1); 
    683684#if defined(WIZARDSTOOLKIT_HAVE_SYSCONF) && defined(_SC_PAGESIZE) 
     
    737738      limit=DestroyString(limit); 
    738739    } 
     740  AcquireSemaphoreInfo(&resource_semaphore); 
     741  return(WizardTrue); 
    739742} 
    740743 
  • WizardsToolkit/trunk/wizard/resource_.h

    r1 r411  
    4545  AcquireWizardResource(const ResourceType,const WizardSizeType), 
    4646  AcquireUniqueFilename(char *,ExceptionInfo *), 
     47  InstantiateResourceFacility(void), 
     48  ListWizardResourceInfo(FILE *,ExceptionInfo *), 
    4749  RelinquishUniqueFileResource(const char *,const WizardBooleanType), 
    48   ListWizardResourceInfo(FILE *,ExceptionInfo *), 
    4950  SetWizardResourceLimit(const ResourceType,const WizardSizeType); 
    5051 
     
    5354 
    5455extern WizardExport void 
    55   AsynchronousDestroyWizardResources(void), 
    56   DestroyWizardResources(void), 
    57   InitializeWizardResources(void), 
     56  AsynchronousDestroyResourceFacility(void), 
     57  DestroyResourceFacility(void), 
    5858  RelinquishWizardResource(const ResourceType,const WizardSizeType); 
    5959 
  • WizardsToolkit/trunk/wizard/semaphore.c

    r359 r411  
    1111%                                                                             % 
    1212%                                                                             % 
    13 %                      Wizard's Toolkit Semaphore Methods                     % 
     13%                        WizardCore Semaphore Methods                         % 
    1414%                                                                             % 
    1515%                              Software Design                                % 
     16%                             William Radcliffe                               % 
    1617%                                John Cristy                                  % 
    1718%                                 June 2000                                   % 
     
    4243*/ 
    4344#include "wizard/studio.h" 
    44 #include "wizard/client.h" 
    4545#include "wizard/exception.h" 
    4646#include "wizard/exception-private.h" 
     
    8282  semaphore_mutex = 0; 
    8383#endif 
     84 
     85static WizardBooleanType 
     86  instantiate_semaphore = WizardFalse; 
    8487 
    8588/* 
     
    138141% 
    139142%      SemaphoreInfo *AllocateSemaphoreInfo(void) 
    140 % 
    141 %  A description of each parameter follows: 
    142 % 
    143 %    o semaphore_info: Method AllocateSemaphoreInfo returns a pointer to an 
    144 %      initialized SemaphoreInfo structure. 
    145 % 
    146143% 
    147144*/ 
     
    175172        semaphore_info=(SemaphoreInfo *) RelinquishAlignedMemory( 
    176173          semaphore_info); 
    177         return((SemaphoreInfo *) NULL); 
     174        ThrowFatalException(ResourceFatalError, 
     175          "unable to instantiate semaphore `%s'"); 
    178176      } 
    179177    status=pthread_mutex_init(&semaphore_info->mutex,&mutex_info); 
     
    183181        semaphore_info=(SemaphoreInfo *) RelinquishAlignedMemory( 
    184182          semaphore_info); 
    185         return((SemaphoreInfo *) NULL); 
     183        ThrowFatalException(ResourceFatalError, 
     184          "unable to instantiate semaphore `%s'"); 
    186185      } 
    187186  } 
     
    217216#if defined(WIZARDSTOOLKIT_HAVE_PTHREAD) 
    218217  if (pthread_mutex_destroy(&semaphore_mutex) != 0) 
    219     { 
    220       (void) fprintf(stderr,"pthread_mutex_destroy failed %s\n", 
    221         strerror(errno)); 
    222       _exit(1); 
    223     } 
    224 #endif 
     218    (void) fprintf(stderr,"pthread_mutex_destroy failed %s\n", 
     219      GetExceptionMessage(errno)); 
     220#elif defined(WIZARDSTOOLKIT_HAVE_WINTHREADS) 
     221  if (instantiate_semaphore == WizardFalse) 
     222    DeleteCriticalSection(&semaphore_mutex); 
     223#endif 
     224  instantiate_semaphore=WizardFalse; 
    225225} 
    226226 
     
    268268%                                                                             % 
    269269%                                                                             % 
    270 %   I n i t i a l i z e S e m a p h o r e                                     % 
    271 %                                                                             % 
    272 %                                                                             % 
    273 %                                                                             % 
    274 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    275 % 
    276 %  InitializeSemaphore() initializes the semaphore environment. 
    277 % 
    278 %  The format of the InitializeSemaphore method is: 
    279 % 
    280 %      InitializeSemaphore(void) 
    281 % 
    282 */ 
    283 WizardExport void InitializeSemaphore(void) 
    284 { 
    285 } 
    286  
    287 /* 
    288 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    289 %                                                                             % 
    290 %                                                                             % 
    291 %                                                                             % 
    292 %   L o c k W i z a r d M u t e x                                             % 
     270%   I n s t a n t i a t e S e m a p h o r e                                   % 
     271%                                                                             % 
     272%                                                                             % 
     273%                                                                             % 
     274%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     275% 
     276%  InstantiateSemaphore() instantiates the semaphore environment. 
     277% 
     278%  The format of the InstantiateSemaphore method is: 
     279% 
     280%      WizardBooleanType InstantiateSemaphore(void) 
     281% 
     282*/ 
     283WizardExport WizardBooleanType InstantiateSemaphore(void) 
     284{ 
     285  LockWizardMutex(); 
     286  UnlockWizardMutex(); 
     287  return(WizardTrue); 
     288} 
     289 
     290/* 
     291%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     292%                                                                             % 
     293%                                                                             % 
     294%                                                                             % 
     295+   L o c k W i z a r d M u t e x                                             % 
    293296%                                                                             % 
    294297%                                                                             % 
     
    304307% 
    305308*/ 
    306 WizardExport void LockWizardMutex(void) 
     309static void LockWizardMutex(void) 
    307310{ 
    308311#if defined(WIZARDSTOOLKIT_HAVE_PTHREAD) 
     
    311314      GetExceptionMessage(errno)); 
    312315#elif defined(WIZARDSTOOLKIT_HAVE_WINTHREADS) 
     316  if (instantiate_semaphore == WizardFalse) 
     317    InitializeCriticalSection(&semaphore_mutex); 
     318  instantiate_semaphore=WizardTrue; 
    313319  while (InterlockedCompareExchange(&semaphore_mutex,1L,0L) != 0) 
    314320    Sleep(10); 
     
    372378          (void) fflush(stderr); 
    373379        } 
    374       semaphore_info->id=id; 
    375380    } 
    376381#endif 
     
    416421%                                                                             % 
    417422%                                                                             % 
    418 %   U n l o c k W i z a r d M u t e x                                         % 
     423+   U n l o c k W i z a r d M u t e x                                         % 
    419424%                                                                             % 
    420425%                                                                             % 
     
    429434% 
    430435*/ 
    431 WizardExport void UnlockWizardMutex(void) 
     436static void UnlockWizardMutex(void) 
    432437{ 
    433438#if defined(WIZARDSTOOLKIT_HAVE_PTHREAD) 
     
    468473  assert(semaphore_info->signature == WizardSignature); 
    469474#if defined(WIZARDSTOOLKIT_DEBUG) 
    470   assert(IsSizeThreadEqual(semaphore_info->id) != WizardFalse); 
     475  assert(IsWizardThreadEqual(semaphore_info->id) != WizardFalse); 
    471476  if (semaphore_info->reference_count == 0) 
    472477    { 
  • WizardsToolkit/trunk/wizard/semaphore.h

    r1 r411  
    3333  DestroySemaphore(void), 
    3434  DestroySemaphoreInfo(SemaphoreInfo **), 
    35   InitializeSemaphore(void), 
    3635  RelinquishSemaphoreInfo(SemaphoreInfo *); 
    3736 
    3837extern WizardExport WizardBooleanType 
     38  InstantiateSemaphore(void), 
    3939  LockSemaphoreInfo(SemaphoreInfo *), 
    4040  UnlockSemaphoreInfo(SemaphoreInfo *); 
  • WizardsToolkit/trunk/wizard/thread.c

    r1 r411  
    6565{ 
    6666#if defined(WIZARDSTOOLKIT_HAVE_PTHREAD) 
    67   return(pthread_key_create(key,(void *) NULL) == 0 ? WizardTrue : WizardFalse); 
     67  return(pthread_key_create(key,NULL) == 0 ? WizardTrue : WizardFalse); 
    6868#elif defined(MAGICKORE_HAVE_WINTHREADS) 
    6969  *key=TlsAlloc(); 
  • WizardsToolkit/trunk/wizard/version.h

    r386 r411  
    3232#define WizardLibVersionNumber  1,0,1 
    3333#define WizardLibSubversion  "-0" 
    34 #define WizardReleaseDate  "2009-10-15" 
     34#define WizardReleaseDate  "2009-10-18" 
    3535#define WizardChangeDate   "20090428" 
    3636#define WizardAuthoritativeURL  "http://www.wizards-toolkit.org" 
  • WizardsToolkit/trunk/wizard/wizard.c

    r1 r411  
    153153  (void) signal(signal_number,SIG_IGN); 
    154154#endif 
    155   AsynchronousDestroyWizardResources(); 
     155  AsynchronousDestroyResourceFacility(); 
    156156  instantiate_wizard=WizardFalse; 
    157157  (void) SetWizardSignalHandler(signal_number,signal_handlers[signal_number]); 
     
    215215  (void) setlocale(LC_NUMERIC,"C"); 
    216216  seconds=time((time_t *) NULL); 
    217   InitializeSemaphore(); 
     217  (void) InstantiateSemaphore(); 
     218  (void) InstantiateLogFacility(); 
     219  (void) InstantiateRandomFacility(); 
    218220  events=GetEnvironmentValue("WIZARD_DEBUG"); 
    219221  if (events != (char *) NULL) 
     
    292294    Initialize wizard resources. 
    293295  */ 
    294   InitializeWizardResources(); 
     296  (void) InstantiateResourceFacility(); 
     297  (void) InstantiateMimeFacility(); 
    295298} 
    296299 
     
    316319WizardExport void WizardsToolkitTerminus(void) 
    317320{ 
    318   DestroyMimeList(); 
    319   DestroyWizardResources(); 
    320   DestroyRandomReservoir(); 
    321   DestroyLogList(); 
    322 } 
     321  DestroyMimeFacility(); 
     322  DestroyResourceFacility(); 
     323  DestroyRandomFacility(); 
     324  DestroyLogFacility(); 
     325}