docs: fix typos
This commit is contained in:
parent
b2827e9960
commit
3fe36a50af
|
@ -20,7 +20,7 @@ int main(int argc, char *argv[]){
|
|||
|
||||
char* p;
|
||||
if (argc != 3){
|
||||
puts("This testfile needs excactly two arguments");
|
||||
puts("This testfile needs exactly two arguments");
|
||||
exit(1);
|
||||
}
|
||||
int num_jobs = strtol(argv[1], &p, 10);
|
||||
|
|
|
@ -24,7 +24,7 @@ int main(int argc, char *argv[]){
|
|||
|
||||
char* p;
|
||||
if (argc != 2){
|
||||
puts("This testfile needs excactly one arguments");
|
||||
puts("This testfile needs exactly one arguments");
|
||||
exit(1);
|
||||
}
|
||||
int num_threads = strtol(argv[1], &p, 10);
|
||||
|
|
6
thpool.c
6
thpool.c
|
@ -211,7 +211,7 @@ void thpool_wait(thpool_* thpool_p){
|
|||
|
||||
/* Destroy the threadpool */
|
||||
void thpool_destroy(thpool_* thpool_p){
|
||||
/* No need to destory if it's NULL */
|
||||
/* No need to destroy if it's NULL */
|
||||
if (thpool_p == NULL) return ;
|
||||
|
||||
volatile int threads_total = thpool_p->num_threads_alive;
|
||||
|
@ -260,7 +260,7 @@ void thpool_pause(thpool_* thpool_p) {
|
|||
/* Resume all threads in threadpool */
|
||||
void thpool_resume(thpool_* thpool_p) {
|
||||
// resuming a single threadpool hasn't been
|
||||
// implemented yet, meanwhile this supresses
|
||||
// implemented yet, meanwhile this suppresses
|
||||
// the warnings
|
||||
(void)thpool_p;
|
||||
|
||||
|
@ -322,7 +322,7 @@ static void thread_hold(int sig_id) {
|
|||
*/
|
||||
static void* thread_do(struct thread* thread_p){
|
||||
|
||||
/* Set thread name for profiling and debuging */
|
||||
/* Set thread name for profiling and debugging */
|
||||
char thread_name[16] = {0};
|
||||
snprintf(thread_name, 16, "thpool-%d", thread_p->id);
|
||||
|
||||
|
|
Loading…
Reference in New Issue