| Index: third_party/grpc/src/core/iomgr/tcp_client.h
|
| diff --git a/third_party/tcmalloc/chromium/src/base/linuxthreads.h b/third_party/grpc/src/core/iomgr/tcp_client.h
|
| similarity index 60%
|
| copy from third_party/tcmalloc/chromium/src/base/linuxthreads.h
|
| copy to third_party/grpc/src/core/iomgr/tcp_client.h
|
| index 5c318fed7ec4c47e7bf082e315992e102abcd620..5e18e71ca2fde8f67c93fec4bb6af96788722e6c 100644
|
| --- a/third_party/tcmalloc/chromium/src/base/linuxthreads.h
|
| +++ b/third_party/grpc/src/core/iomgr/tcp_client.h
|
| @@ -1,4 +1,6 @@
|
| -/* Copyright (c) 2005-2007, Google Inc.
|
| +/*
|
| + *
|
| + * Copyright 2015, Google Inc.
|
| * All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| @@ -27,27 +29,25 @@
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| *
|
| - * ---
|
| - * Author: Markus Gutschke
|
| - */
|
| -
|
| -#ifndef _LINUXTHREADS_H
|
| -#define _LINUXTHREADS_H
|
| -
|
| -/* Include thread_lister.h to get the interface that we implement for linux.
|
| */
|
|
|
| -/* We currently only support x86-32 and x86-64 on Linux. Porting to other
|
| - * related platforms should not be difficult.
|
| - */
|
| -#if (defined(__i386__) || defined(__x86_64__) || defined(__ARM_ARCH_3__) || \
|
| - defined(__mips__) || defined(__PPC__)) && defined(__linux)
|
| +#ifndef GRPC_INTERNAL_CORE_IOMGR_TCP_CLIENT_H
|
| +#define GRPC_INTERNAL_CORE_IOMGR_TCP_CLIENT_H
|
|
|
| -/* Define the THREADS symbol to make sure that there is exactly one core dumper
|
| - * built into the library.
|
| - */
|
| -#define THREADS "Linux /proc"
|
| +#include "src/core/iomgr/endpoint.h"
|
| +#include "src/core/iomgr/pollset_set.h"
|
| +#include "src/core/iomgr/sockaddr.h"
|
| +#include <grpc/support/time.h>
|
|
|
| -#endif
|
| +/* Asynchronously connect to an address (specified as (addr, len)), and call
|
| + cb with arg and the completed connection when done (or call cb with arg and
|
| + NULL on failure).
|
| + interested_parties points to a set of pollsets that would be interested
|
| + in this connection being established (in order to continue their work) */
|
| +void grpc_tcp_client_connect(grpc_exec_ctx *exec_ctx, grpc_closure *on_connect,
|
| + grpc_endpoint **endpoint,
|
| + grpc_pollset_set *interested_parties,
|
| + const struct sockaddr *addr, size_t addr_len,
|
| + gpr_timespec deadline);
|
|
|
| -#endif /* _LINUXTHREADS_H */
|
| +#endif /* GRPC_INTERNAL_CORE_IOMGR_TCP_CLIENT_H */
|
|
|