-
- Downloads
Refactor the pipe/eventfd abstraction
This introduces the wakeup fd interface, corresponding approximately to the existing Google version, complete with a ported giant detailed usage comment. The implementation has two layers, "specialized" and "fallback". The specialized layer is intended to be a suitable platform specific implementation like eventfd, whereas "fallback" is probably pipe, with runtime detection of whether the specialized version works on this system (currently stubbed out).
Showing
- Makefile 25 additions, 10 deletionsMakefile
- build.json 6 additions, 4 deletionsbuild.json
- include/grpc/support/port_platform.h 1 addition, 0 deletionsinclude/grpc/support/port_platform.h
- src/core/iomgr/pollset_kick.c 23 additions, 81 deletionssrc/core/iomgr/pollset_kick.c
- src/core/iomgr/pollset_kick.h 16 additions, 10 deletionssrc/core/iomgr/pollset_kick.h
- src/core/iomgr/wakeup_fd.c 70 additions, 0 deletionssrc/core/iomgr/wakeup_fd.c
- src/core/iomgr/wakeup_fd.h 102 additions, 0 deletionssrc/core/iomgr/wakeup_fd.h
- src/core/iomgr/wakeup_fd_eventfd.c 14 additions, 17 deletionssrc/core/iomgr/wakeup_fd_eventfd.c
- src/core/iomgr/wakeup_fd_nospecial.c 15 additions, 20 deletionssrc/core/iomgr/wakeup_fd_nospecial.c
- src/core/iomgr/wakeup_fd_pipe.c 93 additions, 0 deletionssrc/core/iomgr/wakeup_fd_pipe.c
- src/core/iomgr/wakeup_fd_pipe.h 5 additions, 6 deletionssrc/core/iomgr/wakeup_fd_pipe.h
- test/core/iomgr/poll_kick_test.c 1 addition, 1 deletiontest/core/iomgr/poll_kick_test.c
- vsprojects/vs2013/grpc.vcxproj 10 additions, 5 deletionsvsprojects/vs2013/grpc.vcxproj
- vsprojects/vs2013/grpc_unsecure.vcxproj 10 additions, 5 deletionsvsprojects/vs2013/grpc_unsecure.vcxproj
Loading
Please register or sign in to comment