]> Savannah Git Hosting - gnulib.git/commit
sched_yield: New module.
authorBruno Haible <bruno@clisp.org>
Mon, 15 Jul 2019 00:36:10 +0000 (02:36 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 15 Jul 2019 00:36:10 +0000 (02:36 +0200)
commit3fdb19cf7a5c3c4ada691fdb9d8e01701c747298
tree02fc733152bbbaa921b137ee341868562c9fc84c
parentf76440c5c82def5a6e7541b224d9a5b794b689a1
sched_yield: New module.

* lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
(sched_yield): New declaration.
* lib/sched_yield.c: New file.
* m4/sched_yield.m4: New file.
* m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
provide a replacement sched.h always. Test whether sched_yield is
declared.
(gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
* modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
(Makefile.am): Provide a replacement sched.h always. Substitute
GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
_GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
* modules/sched_yield: New file.
* doc/posix-functions/sched_yield.texi: Mention the new module.
ChangeLog
doc/posix-functions/sched_yield.texi
lib/sched.in.h
lib/sched_yield.c [new file with mode: 0644]
m4/sched_h.m4
m4/sched_yield.m4 [new file with mode: 0644]
modules/sched
modules/sched_yield [new file with mode: 0644]