Skip to content

Commit a7d4610

Browse files
committed
re-wrap comments
1 parent 0cff802 commit a7d4610

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mutexes/race-fixed.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
* From two threads, work with members of a global variable. At every loop,
33
* each thread sets both members to the value passed in by pthread_create().
4-
* Before the assignment it checks whether the structure members are equal. If
5-
* not, the thread prints its identification character. There should be no
4+
* Before the assignment it checks whether the structure members are equal.
5+
* If not, the thread prints its identification character. There should be no
66
* races since access to the structure is protected by a mutex. No races means
77
* there is no output.
88
*

mutexes/race.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
22
* From two threads, work with members of a global variable. At every loop,
33
* each thread sets both members to the value passed in by pthread_create().
4-
* Before the assignment it checks whether the structure members are equal. If
5-
* not, the thread prints its identification character. You should see a lot of
6-
* races even on a single CPU system.
4+
* Before the assignment it checks whether the structure members are equal.
5+
* If not, the thread prints its identification character.
6+
* You should see a lot of races even on a single CPU system.
77
*
88
* Any character printed means a race.
99
*

0 commit comments

Comments
 (0)