mirror of https://github.com/grpc/grpc.git
BUILD: move work_serializer to its own build target (#30255)
* BUILD: move work_serializer to its own build target * add autodeps tag * Automated change: Fix sanity tests * Automated change: Fix sanity tests Co-authored-by: markdroth <markdroth@users.noreply.github.com>pull/30286/head
parent
8aeb548590
commit
4491ed26aa
44 changed files with 166 additions and 119 deletions
@ -1,29 +1,45 @@ |
|||||||
/*
|
//
|
||||||
* |
// Copyright 2019 gRPC authors.
|
||||||
* Copyright 2019 gRPC authors. |
//
|
||||||
* |
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
// you may not use this file except in compliance with the License.
|
||||||
* you may not use this file except in compliance with the License. |
// You may obtain a copy of the License at
|
||||||
* You may obtain a copy of the License at |
//
|
||||||
* |
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
//
|
||||||
* |
// Unless required by applicable law or agreed to in writing, software
|
||||||
* Unless required by applicable law or agreed to in writing, software |
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
// See the License for the specific language governing permissions and
|
||||||
* See the License for the specific language governing permissions and |
// limitations under the License.
|
||||||
* limitations under the License. |
//
|
||||||
* |
|
||||||
*/ |
|
||||||
|
|
||||||
#include <grpc/support/port_platform.h> |
#include <grpc/support/port_platform.h> |
||||||
|
|
||||||
#include "src/core/lib/iomgr/work_serializer.h" |
#include "src/core/lib/gprpp/work_serializer.h" |
||||||
|
|
||||||
|
#include <stdint.h> |
||||||
|
|
||||||
|
#include <atomic> |
||||||
|
#include <functional> |
||||||
|
#include <memory> |
||||||
|
#include <utility> |
||||||
|
|
||||||
|
#include <grpc/support/log.h> |
||||||
|
|
||||||
|
#include "src/core/lib/debug/trace.h" |
||||||
|
#include "src/core/lib/gprpp/debug_location.h" |
||||||
|
#include "src/core/lib/gprpp/mpscq.h" |
||||||
|
#include "src/core/lib/gprpp/orphanable.h" |
||||||
|
|
||||||
namespace grpc_core { |
namespace grpc_core { |
||||||
|
|
||||||
DebugOnlyTraceFlag grpc_work_serializer_trace(false, "work_serializer"); |
DebugOnlyTraceFlag grpc_work_serializer_trace(false, "work_serializer"); |
||||||
|
|
||||||
|
//
|
||||||
|
// WorkSerializer::WorkSerializerImpl
|
||||||
|
//
|
||||||
|
|
||||||
class WorkSerializer::WorkSerializerImpl : public Orphanable { |
class WorkSerializer::WorkSerializerImpl : public Orphanable { |
||||||
public: |
public: |
||||||
void Run(std::function<void()> callback, const DebugLocation& location); |
void Run(std::function<void()> callback, const DebugLocation& location); |
Loading…
Reference in new issue