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
4733c5fe
Commit
4733c5fe
authored
Aug 29, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
io_thread: add function io_thread_quit()
parent
a97ddc8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
io_thread.c
src/io_thread.c
+9
-2
io_thread.h
src/io_thread.h
+8
-0
No files found.
src/io_thread.c
View file @
4733c5fe
...
...
@@ -75,12 +75,19 @@ io_thread_start(GError **error_r)
}
void
io_thread_quit
(
void
)
{
assert
(
io
.
loop
!=
NULL
);
g_main_loop_quit
(
io
.
loop
);
}
void
io_thread_deinit
(
void
)
{
if
(
io
.
thread
!=
NULL
)
{
assert
(
io
.
loop
!=
NULL
);
io_thread_quit
(
);
g_main_loop_quit
(
io
.
loop
);
g_thread_join
(
io
.
thread
);
}
...
...
src/io_thread.h
View file @
4733c5fe
...
...
@@ -37,6 +37,14 @@ io_thread_start(GError **error_r);
void
io_thread_run
(
void
);
/**
* Ask the I/O thread to quit, but does not wait for it. Usually, you
* don't need to call this function, because io_thread_deinit()
* includes this.
*/
void
io_thread_quit
(
void
);
void
io_thread_deinit
(
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