struct v3_queue * tmp_queue = V3_Malloc(sizeof(struct v3_queue));
if (!tmp_queue) {
- PrintError("Cannot allocate a queue\n");
+ PrintError(VM_NONE, VCORE_NONE,"Cannot allocate a queue\n");
return NULL;
}
void v3_deinit_queue(struct v3_queue * queue) {
while (v3_dequeue(queue)) {
- PrintError("ERROR: Freeing non-empty queue. PROBABLE MEMORY LEAK DETECTED\n");
+ PrintError(VM_NONE, VCORE_NONE,"ERROR: Freeing non-empty queue. PROBABLE MEMORY LEAK DETECTED\n");
}
v3_lock_deinit(&(queue->lock));
unsigned int flags = 0;
if (!q_entry) {
- PrintError("Cannot allocate a queue entry for enqueue\n");
+ PrintError(VM_NONE, VCORE_NONE,"Cannot allocate a queue entry for enqueue\n");
return ;
}