зеркало из https://github.com/github/ruby.git
* thread.c (rb_fd_init): remove volatile qualifier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
156ccab796
Коммит
9468e945c8
|
@ -1,3 +1,7 @@
|
|||
Sat May 7 22:38:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread.c (rb_fd_init): remove volatile qualifier.
|
||||
|
||||
Sat May 7 22:34:29 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread.c (rb_fd_init_copy): new internal api. It provide efficient
|
||||
|
|
|
@ -244,7 +244,7 @@ typedef struct {
|
|||
fd_set *fdset;
|
||||
} rb_fdset_t;
|
||||
|
||||
void rb_fd_init(volatile rb_fdset_t *);
|
||||
void rb_fd_init(rb_fdset_t *);
|
||||
void rb_fd_term(rb_fdset_t *);
|
||||
void rb_fd_zero(rb_fdset_t *);
|
||||
void rb_fd_set(int, rb_fdset_t *);
|
||||
|
@ -263,7 +263,7 @@ typedef struct {
|
|||
fd_set *fdset;
|
||||
} rb_fdset_t;
|
||||
|
||||
void rb_fd_init(volatile rb_fdset_t *);
|
||||
void rb_fd_init(rb_fdset_t *);
|
||||
void rb_fd_term(rb_fdset_t *);
|
||||
#define rb_fd_zero(f) ((f)->fdset->fd_count = 0)
|
||||
void rb_fd_set(int, rb_fdset_t *);
|
||||
|
|
4
thread.c
4
thread.c
|
@ -2320,7 +2320,7 @@ rb_thread_priority_set(VALUE thread, VALUE prio)
|
|||
*/
|
||||
|
||||
void
|
||||
rb_fd_init(volatile rb_fdset_t *fds)
|
||||
rb_fd_init(rb_fdset_t *fds)
|
||||
{
|
||||
fds->maxfd = 0;
|
||||
fds->fdset = ALLOC(fd_set);
|
||||
|
@ -2437,7 +2437,7 @@ rb_fd_select(int n, rb_fdset_t *readfds, rb_fdset_t *writefds, rb_fdset_t *excep
|
|||
#elif defined(_WIN32)
|
||||
|
||||
void
|
||||
rb_fd_init(volatile rb_fdset_t *set)
|
||||
rb_fd_init(rb_fdset_t *set)
|
||||
{
|
||||
set->capa = FD_SETSIZE;
|
||||
set->fdset = ALLOC(fd_set);
|
||||
|
|
Загрузка…
Ссылка в новой задаче