diff options
Diffstat (limited to 'src/wg.c')
-rw-r--r-- | src/wg.c | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -1,3 +1,22 @@ +/* wg.c - Thread management tools modeled on + * https://golang.org/pkg/sync/#WaitGroup + * + * Copyright (C) 2016 Luke Shumaker + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + #include <errno.h> #include <error.h> #include <stdlib.h> /* for EXIT_FAILURE */ @@ -5,8 +24,6 @@ #include "wg.h" -/* Thread management tools modeled on https://golang.org/pkg/sync/#WaitGroup */ - /* pthread_cond_t is overly complicated. Just use a self-pipe. */ void wg_init(struct wg *wg) { |