Skip to content
Snippets Groups Projects
Commit 678f2362 authored by manuez42's avatar manuez42
Browse files

Update file auto.c

parent 9dea8f4b
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ Aufgabe 3
pthread_mutex_t bridge_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t bridge_free = PTHREAD_COND_INITIALIZER;
void *collision_simulation3(void* args)
void *collision_simulation3(void* arg)
{
srand(time (NULL));
......@@ -207,8 +207,8 @@ int main (int argc, char *argv[])
pthread_t car1, car2;
int rc1 = pthread_create(&car1, NULL, collision_simulation1, (void *)1, threads, crossings);
int rc2 = pthread_create(&car2, NULL, collision_simulation1, (void *)2, threads, crossings);
int rc1 = pthread_create(&car1, NULL, collision_simulation1, (void *)1);
int rc2 = pthread_create(&car2, NULL, collision_simulation1, (void *)2);
if (rc1)
{
......@@ -239,8 +239,8 @@ int main (int argc, char *argv[])
pthread_t car1, car2;
int rc1 = pthread_create(&car1, NULL, collision_simulation2, (void *)1, threads, crossings);
int rc2 = pthread_create(&car2, NULL, collision_simulation2, (void *)2, threads, crossings);
int rc1 = pthread_create(&car1, NULL, collision_simulation2, (void *)1);
int rc2 = pthread_create(&car2, NULL, collision_simulation2, (void *)2);
if (rc1)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment