Skip to content
Snippets Groups Projects
Commit cfa27bcf authored by omah03's avatar omah03
Browse files

changed pointer name

parent ffd5a858
No related branches found
No related tags found
1 merge request!4Übung2
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
#define crosses 100000 #define crosses 100000
int car_on_bridge = 0; int car_on_bridge = 0;
void* func(void* arg){ void* func(void* ptr){
int car_id = *(int*)arg; int car_id = *(int*)ptr;
int crosses_counter = 0; int crosses_counter = 0;
while (crosses_counter < crosses){ while (crosses_counter < crosses){
while (car_on_bridge == 1){ while (car_on_bridge == 1){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment