 				printf(
 						"KernelWrapper wait for consuming result! result_int: %d, result_available: %s\n",
 						result_int, (result_available) ? "true" : "false");
-
 			}
 
 			printf("KernelWrapper consumed result: %d\n", result_int);

	int count = 0;

	while (count < 100) {
		// (old == -1 ? thread_id : old)
		int old = atomicCAS((int *) &d_kernelWrapper->lock_thread_id, -1,
				thread_id);



				pthread_mutex_t *lock =
						(pthread_mutex_t *) &_this->mutex_process_command;

				pthread_mutex_lock(lock);
				printf(
						"KernelWrapper thread: %p, LOCKED(mutex_process_command)\n",
						pthread_self());
				_this->processCommand();
				_this->reset();
				pthread_mutex_unlock(lock);
				printf(
						"KernelWrapper thread: %p, UNLOCKED(mutex_process_command)\n",
						pthread_self());
			}
		}
		return NULL;
