| 724 | txSharedCluster* gxSharedCluster = C_NULL; |
| 725 | |
| 726 | void fxInitializeSharedCluster(txMachine* the) |
| 727 | { |
| 728 | if (gxSharedCluster) { |
| 729 | gxSharedCluster->usage++; |
| 730 | } |
| 731 | else { |
| 732 | gxSharedCluster = c_calloc(sizeof(txSharedCluster), 1); |
| 733 | if (gxSharedCluster) { |
| 734 | gxSharedCluster->mainThread = mxCurrentThread(); |
| 735 | gxSharedCluster->usage++; |
| 736 | #if mxThreads |
| 737 | mxCreateMutex(&gxSharedCluster->waiterMutex); |
| 738 | #endif |
| 739 | #ifdef mxInitializeSharedTimers |
| 740 | mxInitializeSharedTimers(); |
| 741 | #endif |
| 742 | } |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | void fxTerminateSharedCluster(txMachine* the) |
| 747 | { |