Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
700f18ee
Commit
700f18ee
authored
Oct 06, 2008
by
Eric Wong
Committed by
Max Kellermann
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main_notify: define main_task so we can use it for assertions
It'll be easier to keep track of what code runs in what task/thread this way.
parent
19a4803b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
main_notify.c
src/main_notify.c
+2
-1
main_notify.h
src/main_notify.h
+4
-0
No files found.
src/main_notify.c
View file @
700f18ee
...
...
@@ -27,7 +27,7 @@
static
struct
ioOps
main_notify_IO
;
static
int
main_pipe
[
2
];
static
pthread_t
main_task
;
pthread_t
main_task
;
static
Notify
main_notify
;
static
pthread_mutex_t
select_mutex
=
PTHREAD_MUTEX_INITIALIZER
;
...
...
@@ -60,6 +60,7 @@ static int ioops_consume(int fd_count, fd_set * rfds,
void
init_main_notify
(
void
)
{
main_task
=
pthread_self
();
init_async_pipe
(
main_pipe
);
main_notify_IO
.
fdset
=
ioops_fdset
;
main_notify_IO
.
consume
=
ioops_consume
;
...
...
src/main_notify.h
View file @
700f18ee
...
...
@@ -21,6 +21,10 @@
#ifndef MAIN_NOTIFY_H
#define MAIN_NOTIFY_H
#include <pthread.h>
extern
pthread_t
main_task
;
void
init_main_notify
(
void
);
void
deinit_main_notify
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment