mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-19 06:08:22 +02:00
Same copyright header change to stuff in the loops folder.
This commit is contained in:
parent
6221c9ed03
commit
1cdeb151bf
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - Acceptor.cc
|
||||||
* Acceptor.cc
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "acceptor.h"
|
#include "acceptor.h"
|
||||||
using namespace trantor;
|
using namespace trantor;
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - Acceptor.h
|
||||||
* Acceptor.h
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - callbacks.h
|
||||||
* callbacks.h
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - Channel.cc
|
||||||
* Channel.cc
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "channel.h"
|
#include "channel.h"
|
||||||
#include "event_loop.h"
|
#include "event_loop.h"
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - Channel.h
|
||||||
* @file Channel.h
|
|
||||||
* @author An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,19 +1,33 @@
|
|||||||
// Copyright 2010, Shuo Chen. All rights reserved.
|
|
||||||
// http://code.google.com/p/muduo/
|
// This file is originally from Moduo -> Trantor - EventLoop.cc
|
||||||
|
|
||||||
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
|
// Copyright (c) 2010, Shuo Chen. All rights reserved.
|
||||||
|
|
||||||
|
// Redistribution and use in source and binary forms, with or without
|
||||||
|
// modification, are permitted provided that the following conditions
|
||||||
|
// are met:
|
||||||
//
|
//
|
||||||
// Use of this source code is governed by a BSD-style license
|
// * Redistributions of source code must retain the above copyright
|
||||||
// that can be found in the License file.
|
// notice, this list of conditions and the following disclaimer.
|
||||||
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
// Author: Shuo Chen (chenshuo at chenshuo dot com)
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
// Taken from Muduo and modified
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
// Copyright 2016, Tao An. All rights reserved.
|
// may be used to endorse or promote products derived from this software
|
||||||
// https://github.com/an-tao/trantor
|
// without specific prior written permission.
|
||||||
//
|
//
|
||||||
// Use of this source code is governed by a BSD-style license
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
// that can be found in the License file.
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
// Author: Tao An
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "event_loop.h"
|
#include "event_loop.h"
|
||||||
#include "core/log/logger.h"
|
#include "core/log/logger.h"
|
||||||
|
@ -1,19 +1,33 @@
|
|||||||
// Copyright 2010, Shuo Chen. All rights reserved.
|
|
||||||
// http://code.google.com/p/muduo/
|
// This file is originally from Moduo -> Trantor - EventLoop.h
|
||||||
|
|
||||||
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
|
// Copyright (c) 2010, Shuo Chen. All rights reserved.
|
||||||
|
|
||||||
|
// Redistribution and use in source and binary forms, with or without
|
||||||
|
// modification, are permitted provided that the following conditions
|
||||||
|
// are met:
|
||||||
//
|
//
|
||||||
// Use of this source code is governed by a BSD-style license
|
// * Redistributions of source code must retain the above copyright
|
||||||
// that can be found in the License file.
|
// notice, this list of conditions and the following disclaimer.
|
||||||
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
// Author: Shuo Chen (chenshuo at chenshuo dot com)
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
// Taken from Muduo and modified
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
// Copyright 2016, Tao An. All rights reserved.
|
// may be used to endorse or promote products derived from this software
|
||||||
// https://github.com/an-tao/trantor
|
// without specific prior written permission.
|
||||||
//
|
//
|
||||||
// Use of this source code is governed by a BSD-style license
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
// that can be found in the License file.
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
// Author: Tao An
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - EventLoopThread.cc
|
||||||
* @file EventLoopThread.cc
|
|
||||||
* @author An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "event_loop_thread.h"
|
#include "event_loop_thread.h"
|
||||||
#include "core/log/logger.h"
|
#include "core/log/logger.h"
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - EventLoopThread.h
|
||||||
* @file EventLoopThread.h
|
|
||||||
* @author An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - EventLoopThreadPool.cc
|
||||||
* EventLoopThreadPool.cc
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "event_loop_thread_pool.h"
|
#include "event_loop_thread_pool.h"
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - EventLoopThreadPool.h
|
||||||
* @file EventLoopThreadPool.h
|
|
||||||
* @author An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - Poller.cc
|
||||||
* Poller.cc
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "core/loops/poller.h"
|
#include "core/loops/poller.h"
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - Poller.h
|
||||||
* Poller.h
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - EpollPoller.cc
|
||||||
* EpollPoller.cc
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "epoll_poller.h"
|
#include "epoll_poller.h"
|
||||||
#include "core/log/logger.h"
|
#include "core/log/logger.h"
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - EpollPoller.h
|
||||||
* EpollPoller.h
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,3 +1,34 @@
|
|||||||
|
|
||||||
|
// This file is originally from Trantor - KQueue.cc
|
||||||
|
|
||||||
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
|
|
||||||
|
// Redistribution and use in source and binary forms, with or without
|
||||||
|
// modification, are permitted provided that the following conditions
|
||||||
|
// are met:
|
||||||
|
//
|
||||||
|
// * Redistributions of source code must retain the above copyright
|
||||||
|
// notice, this list of conditions and the following disclaimer.
|
||||||
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
#include "kqueue.h"
|
#include "kqueue.h"
|
||||||
|
|
||||||
#include "core/loops/channel.h"
|
#include "core/loops/channel.h"
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - KQueue.h
|
||||||
* KQueue.h
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
* https://github.com/an-tao/trantor
|
// modification, are permitted provided that the following conditions
|
||||||
* Use of this source code is governed by a BSD-style license
|
// are met:
|
||||||
* that can be found in the License file.
|
//
|
||||||
*
|
// * Redistributions of source code must retain the above copyright
|
||||||
* Trantor
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "core/loops/event_loop.h"
|
#include "core/loops/event_loop.h"
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - Timer.cc
|
||||||
* Timer.cc
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "core/log/logger.h"
|
#include "core/log/logger.h"
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - Timer.h
|
||||||
* Timer.h
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - TimerQueue.cc
|
||||||
* @file TimerQueue.cc
|
|
||||||
* @author An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "event_loop.h"
|
#include "event_loop.h"
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - TimerQueue.h
|
||||||
* TimerQueue.h
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - TimingWheel.cc
|
||||||
* TimingWheel.cc
|
|
||||||
* An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "core/loops/timing_wheel.h"
|
#include "core/loops/timing_wheel.h"
|
||||||
|
|
||||||
|
@ -1,16 +1,32 @@
|
|||||||
/**
|
|
||||||
*
|
// This file is originally from Trantor - TimingWheel.h
|
||||||
* @file TimingWheel.h
|
|
||||||
* @author An Tao
|
// Copyright (c) 2016-2021, Tao An. All rights reserved.
|
||||||
*
|
|
||||||
* Public header file in trantor lib.
|
// Redistribution and use in source and binary forms, with or without
|
||||||
*
|
// modification, are permitted provided that the following conditions
|
||||||
* Copyright 2018, An Tao. All rights reserved.
|
// are met:
|
||||||
* Use of this source code is governed by a BSD-style license
|
//
|
||||||
* that can be found in the License file.
|
// * Redistributions of source code must retain the above copyright
|
||||||
*
|
// notice, this list of conditions and the following disclaimer.
|
||||||
*
|
// * Redistributions in binary form must reproduce the above copyright
|
||||||
*/
|
// notice, this list of conditions and the following disclaimer in the
|
||||||
|
// documentation and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of Tao An nor the names of other contributors
|
||||||
|
// may be used to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user