Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
e9084691
Commit
e9084691
authored
20 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add terminate handler to threads interface.
parent
94321500
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/ZMap/zmapThreads.h
+12
-4
12 additions, 4 deletions
src/include/ZMap/zmapThreads.h
with
12 additions
and
4 deletions
src/include/ZMap/zmapThreads.h
+
12
−
4
View file @
e9084691
...
...
@@ -25,9 +25,9 @@
* Description: Interface to sub threads of the ZMap GUI thread.
*
* HISTORY:
* Last edited: Feb
2
1
0:15
2005 (edgrif)
* Last edited: Feb
3
1
1:30
2005 (edgrif)
* Created: Thu Jan 27 11:16:13 2005 (edgrif)
* CVS info: $Id: zmapThreads.h,v 1.
1
2005-02-0
2
1
4:55:48
edgrif Exp $
* CVS info: $Id: zmapThreads.h,v 1.
2
2005-02-0
3
1
5:00:55
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_THREAD_H
...
...
@@ -76,10 +76,18 @@ typedef struct _ZMapThreadStruct *ZMapThread ;
* replay is the reply from the slave code. */
typedef
ZMapThreadReturnCode
(
*
ZMapThreadRequestHandlerFunc
)(
void
**
slave_data
,
void
*
request
,
void
**
reply
,
char
**
err_msg
)
;
char
**
err_msg
_out
)
;
/* Function that the thread code will call when the thread gets terminated abnormally by an
* error or thread cancel, this gives the slave code the chance to clean up, the slave code
* should set slave_data to null on returning. */
typedef
ZMapThreadReturnCode
(
*
ZMapThreadTerminateHandler
)(
void
**
slave_data
,
char
**
err_msg_out
)
;
ZMapThread
zMapThreadCreate
(
ZMapThreadRequestHandlerFunc
handler_func
)
;
ZMapThread
zMapThreadCreate
(
ZMapThreadRequestHandlerFunc
handler_func
,
ZMapThreadTerminateHandler
terminate_func
)
;
void
zMapThreadRequest
(
ZMapThread
thread
,
void
*
request
)
;
gboolean
zMapThreadGetReply
(
ZMapThread
thread
,
ZMapThreadReply
*
state
)
;
void
zMapThreadSetReply
(
ZMapThread
thread
,
ZMapThreadReply
state
)
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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