Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
ae7defcb
Commit
ae7defcb
authored
26 years ago
by
Per Hedbor
Browse files
Options
Downloads
Patches
Plain Diff
added a th_kill macro
Rev: src/threads.h:1.49
parent
90143c65
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/threads.h
+3
-2
3 additions, 2 deletions
src/threads.h
with
3 additions
and
2 deletions
src/threads.h
+
3
−
2
View file @
ae7defcb
/*
/*
* $Id: threads.h,v 1.4
8
1998/08/1
0 23:33:31 hubbe
Exp $
* $Id: threads.h,v 1.4
9
1998/08/1
7 04:36:57 per
Exp $
*/
*/
#ifndef THREADS_H
#ifndef THREADS_H
#define THREADS_H
#define THREADS_H
...
@@ -83,7 +83,7 @@ extern pthread_attr_t small_pattr;
...
@@ -83,7 +83,7 @@ extern pthread_attr_t small_pattr;
#define th_create_small(ID,fun,arg) pthread_create(ID,&small_pattr,fun,arg)
#define th_create_small(ID,fun,arg) pthread_create(ID,&small_pattr,fun,arg)
#define th_exit(foo) pthread_exit(foo)
#define th_exit(foo) pthread_exit(foo)
#define th_self() pthread_self()
#define th_self() pthread_self()
#define th_kill(ID,sig) pthread_kill((ID),(sig))
#ifdef HAVE_PTHREAD_COND_INIT
#ifdef HAVE_PTHREAD_COND_INIT
#define COND_T pthread_cond_t
#define COND_T pthread_cond_t
...
@@ -122,6 +122,7 @@ extern pthread_attr_t small_pattr;
...
@@ -122,6 +122,7 @@ extern pthread_attr_t small_pattr;
#define th_create_small(ID,fun,arg) thr_create(NULL,32768,fun,arg,THR_DAEMON|THR_DETACHED,ID)
#define th_create_small(ID,fun,arg) thr_create(NULL,32768,fun,arg,THR_DAEMON|THR_DETACHED,ID)
#define th_exit(foo) thr_exit(foo)
#define th_exit(foo) thr_exit(foo)
#define th_self() thr_self()
#define th_self() thr_self()
#define th_kill(ID,sig) thr_kill((ID),(sig))
#define th_yield() thr_yield()
#define th_yield() thr_yield()
#define COND_T cond_t
#define COND_T cond_t
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment