1 | /* |
1 | /* |
2 | * libev simple C++ wrapper classes |
2 | * libev simple C++ wrapper classes |
3 | * |
3 | * |
4 | * Copyright (c) 2007,2008,2010,2018 Marc Alexander Lehmann <libev@schmorp.de> |
4 | * Copyright (c) 2007,2008,2010,2018,2020 Marc Alexander Lehmann <libev@schmorp.de> |
5 | * All rights reserved. |
5 | * All rights reserved. |
6 | * |
6 | * |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
8 | * tion, are permitted provided that the following conditions are met: |
8 | * tion, are permitted provided that the following conditions are met: |
9 | * |
9 | * |
… | |
… | |
626 | \ |
626 | \ |
627 | public: |
627 | public: |
628 | |
628 | |
629 | #define EV_END_WATCHER(cppstem,cstem) \ |
629 | #define EV_END_WATCHER(cppstem,cstem) \ |
630 | }; |
630 | }; |
|
|
631 | //TODO: https://paste.debian.net/1268417/ |
631 | |
632 | |
632 | EV_BEGIN_WATCHER (io, io) |
633 | EV_BEGIN_WATCHER (io, io) |
633 | void set (int fd, int events) EV_NOEXCEPT |
634 | void set (int fd, int events) EV_NOEXCEPT |
634 | { |
635 | { |
635 | freeze_guard freeze (this); |
636 | freeze_guard freeze (this); |