ruby-changes:19426
From: kosaki <ko1@a...>
Date: Sat, 7 May 2011 22:41:03 +0900 (JST)
Subject: [ruby-changes:19426] Ruby:r31466 (trunk): * thread.c (rb_fd_init): remove volatile qualifier.
kosaki 2011-05-07 22:40:56 +0900 (Sat, 07 May 2011) New Revision: 31466 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31466 Log: * thread.c (rb_fd_init): remove volatile qualifier. Modified files: trunk/ChangeLog trunk/include/ruby/intern.h trunk/thread.c Index: include/ruby/intern.h =================================================================== --- include/ruby/intern.h (revision 31465) +++ include/ruby/intern.h (revision 31466) @@ -244,7 +244,7 @@ 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 @@ 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 *); Index: ChangeLog =================================================================== --- ChangeLog (revision 31465) +++ ChangeLog (revision 31466) @@ -1,3 +1,7 @@ +Sat May 7 22:38:04 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * thread.c (rb_fd_init): remove volatile qualifier. + Sat May 7 22:34:29 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * thread.c (rb_fd_init_copy): new internal api. It provide efficient Index: thread.c =================================================================== --- thread.c (revision 31465) +++ thread.c (revision 31466) @@ -2320,7 +2320,7 @@ */ 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 @@ #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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/