/** * zestaw funkcji porzadkujacych */ void cleanup() { closeQueue("tmp/servers.rip",queue_id); int i; for(i=0; i<ids_size; i++) { closeQueue(files[i],ids[i]); free(files[i]); } free(ids); free(files); }
/** * zestaw funkcji porzadkujacych */ void cleanup(){ closeQueue(QUEUENAME,queue_id); int i; for(i=0; i<ids_size;i++){ closeQueue(files[i],ids[i]); free(files[i]); } free(ids); free(idsr); free(files); }
void cleanUp() { closeQueue(HANDSHAKEQUEUE, handShakeQueue); int i; for (i = 0; i < sendQueues_size; i++) { closeQueue(clientIDs[i],sendQueues[i]); free(clientIDs[i]); } free(sendQueues); free(recQueues); free(clientIDs); printf("\n<%d>\n", sendQueues_size); exit(0); }
static void closeAndExit(int sig) { // Stop running threads running = 0; // Wait for the trheads to stop. pthread_join(cmd_thread, NULL); pthread_join(btn_thread, NULL); closeButtonSHM(SHM_NAME); closeDevices(); closeQueue(); syslog (LOG_INFO, "Program stopped by User %d", getuid()); closelog(); exit(0); }
~SimpleQueueStrategy() { closeQueue(); }
~PriorityQueueStrategy() { closeQueue(); }