diff --git a/src/os_threadpool.c b/src/os_threadpool.c index aad0bb09c151c1310069edd8957270ac8586eccf..4ee1f7b2058c5b25ae80f43b32d3a543a8dad1de 100644 --- a/src/os_threadpool.c +++ b/src/os_threadpool.c @@ -39,10 +39,8 @@ void enqueue_task(os_threadpool_t *tp, os_task_t *t) assert(t != NULL); /* TODO: Enqueue task to the shared task queue. Use synchronization. */ - //pthread_mutex_lock(&tp->mutexCoada); list_add_tail(&tp->head, &t->list); pthread_cond_broadcast(&tp->Wait); - //pthread_mutex_unlock(&tp->mutexCoada); } /* diff --git a/src/parallel b/src/parallel deleted file mode 100755 index 88cb07462b5b54ce0a6b4723fdd3bed9dcfbb750..0000000000000000000000000000000000000000 Binary files a/src/parallel and /dev/null differ diff --git a/src/parallel.c b/src/parallel.c index 78900ddc60b1edd49da296d327d8dd68da64104a..b2a2165c4adace40eef3df1c4aad74306cac9bef 100644 --- a/src/parallel.c +++ b/src/parallel.c @@ -41,7 +41,6 @@ static void process_node(unsigned int idx) sum += graph->nodes[idx]->info; graph->visited[idx] = DONE; for (unsigned int i = 0; i < graph->nodes[idx]->num_neighbours; ++i) { - if (graph->visited[graph->nodes[idx]->neighbours[i]] == NOT_VISITED) { graph->visited[graph->nodes[idx]->neighbours[i]] = PROCESSING; os_arg_t *arg = malloc(sizeof(*arg)); diff --git a/src/serial b/src/serial deleted file mode 100755 index e0865c76c5a667357f2a9b9c688ae2c5db9057e5..0000000000000000000000000000000000000000 Binary files a/src/serial and /dev/null differ