mirror of https://github.com/grpc/grpc.git
commit
d0e37cb958
109 changed files with 2830 additions and 418 deletions
@ -0,0 +1,197 @@ |
||||
/*
|
||||
* |
||||
* Copyright 2015, Google Inc. |
||||
* 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 Google Inc. nor the names of its |
||||
* 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 <grpc/support/port_platform.h> |
||||
|
||||
#ifdef GPR_LINUX_MULTIPOLL_WITH_EPOLL |
||||
|
||||
#include <errno.h> |
||||
#include <string.h> |
||||
#include <sys/epoll.h> |
||||
#include <unistd.h> |
||||
|
||||
#include "src/core/iomgr/fd_posix.h" |
||||
#include <grpc/support/alloc.h> |
||||
#include <grpc/support/log.h> |
||||
|
||||
typedef struct { |
||||
int epoll_fd; |
||||
grpc_wakeup_fd_info wakeup_fd; |
||||
} pollset_hdr; |
||||
|
||||
static void multipoll_with_epoll_pollset_add_fd(grpc_pollset *pollset, |
||||
grpc_fd *fd) { |
||||
pollset_hdr *h = pollset->data.ptr; |
||||
struct epoll_event ev; |
||||
int err; |
||||
|
||||
ev.events = EPOLLIN | EPOLLOUT | EPOLLET; |
||||
ev.data.ptr = fd; |
||||
err = epoll_ctl(h->epoll_fd, EPOLL_CTL_ADD, fd->fd, &ev); |
||||
if (err < 0) { |
||||
/* FDs may be added to a pollset multiple times, so EEXIST is normal. */ |
||||
if (errno != EEXIST) { |
||||
gpr_log(GPR_ERROR, "epoll_ctl add for %d failed: %s", fd->fd, |
||||
strerror(errno)); |
||||
} |
||||
} |
||||
} |
||||
|
||||
static void multipoll_with_epoll_pollset_del_fd(grpc_pollset *pollset, |
||||
grpc_fd *fd) { |
||||
pollset_hdr *h = pollset->data.ptr; |
||||
int err; |
||||
/* Note that this can race with concurrent poll, but that should be fine since
|
||||
* at worst it creates a spurious read event on a reused grpc_fd object. */ |
||||
err = epoll_ctl(h->epoll_fd, EPOLL_CTL_DEL, fd->fd, NULL); |
||||
if (err < 0) { |
||||
gpr_log(GPR_ERROR, "epoll_ctl del for %d failed: %s", fd->fd, |
||||
strerror(errno)); |
||||
} |
||||
} |
||||
|
||||
/* TODO(klempner): We probably want to turn this down a bit */ |
||||
#define GRPC_EPOLL_MAX_EVENTS 1000 |
||||
|
||||
static int multipoll_with_epoll_pollset_maybe_work( |
||||
grpc_pollset *pollset, gpr_timespec deadline, gpr_timespec now, |
||||
int allow_synchronous_callback) { |
||||
struct epoll_event ep_ev[GRPC_EPOLL_MAX_EVENTS]; |
||||
int ep_rv; |
||||
pollset_hdr *h = pollset->data.ptr; |
||||
int timeout_ms; |
||||
|
||||
/* If you want to ignore epoll's ability to sanely handle parallel pollers,
|
||||
* for a more apples-to-apples performance comparison with poll, add a |
||||
* if (pollset->counter == 0) { return 0 } |
||||
* here. |
||||
*/ |
||||
|
||||
if (gpr_time_cmp(deadline, gpr_inf_future) == 0) { |
||||
timeout_ms = -1; |
||||
} else { |
||||
timeout_ms = gpr_time_to_millis(gpr_time_sub(deadline, now)); |
||||
if (timeout_ms <= 0) { |
||||
return 1; |
||||
} |
||||
} |
||||
pollset->counter += 1; |
||||
gpr_mu_unlock(&pollset->mu); |
||||
|
||||
do { |
||||
ep_rv = epoll_wait(h->epoll_fd, ep_ev, GRPC_EPOLL_MAX_EVENTS, timeout_ms); |
||||
if (ep_rv < 0) { |
||||
if (errno != EINTR) { |
||||
gpr_log(GPR_ERROR, "epoll_wait() failed: %s", strerror(errno)); |
||||
} |
||||
} else { |
||||
int i; |
||||
for (i = 0; i < ep_rv; ++i) { |
||||
if (ep_ev[i].data.ptr == 0) { |
||||
grpc_wakeup_fd_consume_wakeup(&h->wakeup_fd); |
||||
} else { |
||||
grpc_fd *fd = ep_ev[i].data.ptr; |
||||
/* TODO(klempner): We might want to consider making err and pri
|
||||
* separate events */ |
||||
int cancel = ep_ev[i].events & (EPOLLERR | EPOLLHUP); |
||||
int read = ep_ev[i].events & (EPOLLIN | EPOLLPRI); |
||||
int write = ep_ev[i].events & EPOLLOUT; |
||||
if (read || cancel) { |
||||
grpc_fd_become_readable(fd, allow_synchronous_callback); |
||||
} |
||||
if (write || cancel) { |
||||
grpc_fd_become_writable(fd, allow_synchronous_callback); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
timeout_ms = 0; |
||||
} while (ep_rv == GRPC_EPOLL_MAX_EVENTS); |
||||
|
||||
gpr_mu_lock(&pollset->mu); |
||||
pollset->counter -= 1; |
||||
/* TODO(klempner): This should signal once per event rather than broadcast,
|
||||
* although it probably doesn't matter because threads will generally be |
||||
* blocked in epoll_wait rather than being blocked on the cv. */ |
||||
gpr_cv_broadcast(&pollset->cv); |
||||
return 1; |
||||
} |
||||
|
||||
static void multipoll_with_epoll_pollset_destroy(grpc_pollset *pollset) { |
||||
pollset_hdr *h = pollset->data.ptr; |
||||
grpc_wakeup_fd_destroy(&h->wakeup_fd); |
||||
close(h->epoll_fd); |
||||
gpr_free(h); |
||||
} |
||||
|
||||
static void epoll_kick(grpc_pollset *pollset) { |
||||
pollset_hdr *h = pollset->data.ptr; |
||||
grpc_wakeup_fd_wakeup(&h->wakeup_fd); |
||||
} |
||||
|
||||
static const grpc_pollset_vtable multipoll_with_epoll_pollset = { |
||||
multipoll_with_epoll_pollset_add_fd, multipoll_with_epoll_pollset_del_fd, |
||||
multipoll_with_epoll_pollset_maybe_work, epoll_kick, |
||||
multipoll_with_epoll_pollset_destroy}; |
||||
|
||||
void grpc_platform_become_multipoller(grpc_pollset *pollset, grpc_fd **fds, |
||||
size_t nfds) { |
||||
size_t i; |
||||
pollset_hdr *h = gpr_malloc(sizeof(pollset_hdr)); |
||||
struct epoll_event ev; |
||||
int err; |
||||
|
||||
pollset->vtable = &multipoll_with_epoll_pollset; |
||||
pollset->data.ptr = h; |
||||
h->epoll_fd = epoll_create1(EPOLL_CLOEXEC); |
||||
if (h->epoll_fd < 0) { |
||||
/* TODO(klempner): Fall back to poll here, especially on ENOSYS */ |
||||
gpr_log(GPR_ERROR, "epoll_create1 failed: %s", strerror(errno)); |
||||
abort(); |
||||
} |
||||
for (i = 0; i < nfds; i++) { |
||||
multipoll_with_epoll_pollset_add_fd(pollset, fds[i]); |
||||
} |
||||
|
||||
grpc_wakeup_fd_create(&h->wakeup_fd); |
||||
ev.events = EPOLLIN; |
||||
ev.data.ptr = 0; |
||||
err = epoll_ctl(h->epoll_fd, EPOLL_CTL_ADD, |
||||
GRPC_WAKEUP_FD_GET_READ_FD(&h->wakeup_fd), &ev); |
||||
if (err < 0) { |
||||
gpr_log(GPR_ERROR, "Wakeup fd epoll_ctl failed: %s", strerror(errno)); |
||||
abort(); |
||||
} |
||||
} |
||||
|
||||
#endif /* GPR_LINUX_MULTIPOLL_WITH_EPOLL */ |
@ -0,0 +1,54 @@ |
||||
/*
|
||||
* |
||||
* Copyright 2014, Google Inc. |
||||
* 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 Google Inc. nor the names of its |
||||
* 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 <grpc/support/port_platform.h> |
||||
|
||||
#ifdef GPR_WIN32 |
||||
|
||||
#include "src/core/support/cpu.h" |
||||
|
||||
#include <grpc/support/log.h> |
||||
|
||||
unsigned gpr_cpu_num_cores(void) { |
||||
/* TODO(jtattermusch): implement */ |
||||
gpr_log(GPR_ERROR, "Cannot determine number of CPUs: assuming 1"); |
||||
return 1; |
||||
} |
||||
|
||||
unsigned gpr_cpu_current_cpu(void) { |
||||
/* TODO(jtattermusch): implement */ |
||||
gpr_log(GPR_ERROR, "Cannot determine current CPU"); |
||||
return 0; |
||||
} |
||||
|
||||
#endif /* GPR_WIN32 */ |
@ -0,0 +1,115 @@ |
||||
/* |
||||
* |
||||
* Copyright 2015, Google Inc. |
||||
* 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 Google Inc. nor the names of its |
||||
* 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. |
||||
* |
||||
*/ |
||||
|
||||
var grpc = require('..'); |
||||
var testProto = grpc.load(__dirname + '/../interop/test.proto').grpc.testing; |
||||
var _ = require('underscore'); |
||||
var interop_server = require('../interop/interop_server.js'); |
||||
|
||||
function runTest(iterations, callback) { |
||||
var testServer = interop_server.getServer(0, false); |
||||
testServer.server.listen(); |
||||
var client = new testProto.TestService('localhost:' + testServer.port); |
||||
|
||||
function runIterations(finish) { |
||||
var start = process.hrtime(); |
||||
var intervals = []; |
||||
var pending = iterations; |
||||
function next(i) { |
||||
if (i >= iterations) { |
||||
testServer.server.shutdown(); |
||||
var totalDiff = process.hrtime(start); |
||||
finish({ |
||||
total: totalDiff[0] * 1000000 + totalDiff[1] / 1000, |
||||
intervals: intervals |
||||
}); |
||||
} else{ |
||||
var deadline = new Date(); |
||||
deadline.setSeconds(deadline.getSeconds() + 3); |
||||
var startTime = process.hrtime(); |
||||
client.emptyCall({}, function(err, resp) { |
||||
var timeDiff = process.hrtime(startTime); |
||||
intervals[i] = timeDiff[0] * 1000000 + timeDiff[1] / 1000; |
||||
next(i+1); |
||||
}, {}, deadline); |
||||
} |
||||
} |
||||
next(0); |
||||
} |
||||
|
||||
function warmUp(num) { |
||||
var pending = num; |
||||
for (var i = 0; i < num; i++) { |
||||
(function(i) { |
||||
client.emptyCall({}, function(err, resp) { |
||||
pending--; |
||||
if (pending === 0) { |
||||
runIterations(callback); |
||||
} |
||||
}); |
||||
})(i); |
||||
} |
||||
} |
||||
warmUp(100); |
||||
} |
||||
|
||||
function percentile(arr, percentile) { |
||||
if (percentile > 99) { |
||||
percentile = 99; |
||||
} |
||||
if (percentile < 0) { |
||||
percentile = 0; |
||||
} |
||||
return arr[(arr.length * percentile / 100)|0]; |
||||
} |
||||
|
||||
if (require.main === module) { |
||||
var count; |
||||
if (process.argv.length >= 3) { |
||||
count = process.argv[2]; |
||||
} else { |
||||
count = 100; |
||||
} |
||||
runTest(count, function(results) { |
||||
var sorted_intervals = _.sortBy(results.intervals, _.identity); |
||||
console.log('count:', count); |
||||
console.log('total time:', results.total, 'us'); |
||||
console.log('median:', percentile(sorted_intervals, 50), 'us'); |
||||
console.log('90th percentile:', percentile(sorted_intervals, 90), 'us'); |
||||
console.log('95th percentile:', percentile(sorted_intervals, 95), 'us'); |
||||
console.log('99th percentile:', percentile(sorted_intervals, 99), 'us'); |
||||
console.log('QPS:', (count / results.total) * 1000000); |
||||
}); |
||||
} |
||||
|
||||
module.exports = runTest; |
@ -1,2 +1,2 @@ |
||||
<%namespace file="vcxproj.filters_defs.include" import="gen_project"/>\ |
||||
${gen_project('gpr', libs, targets)} |
||||
<%namespace file="vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters('gpr', libs, targets)} |
||||
|
@ -0,0 +1,2 @@ |
||||
<%namespace file="vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters('gpr', libs, targets)} |
@ -0,0 +1,2 @@ |
||||
<%namespace file="vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('gpr', libs, targets, configuration_type = 'DynamicLibrary', project_guid = '{3D304D6B-AAF8-428B-AC7D-A698DDDE93C0}')} |
@ -1,2 +1,2 @@ |
||||
<%namespace file="vcxproj.filters_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc', libs, targets)} |
||||
<%namespace file="vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters('grpc', libs, targets)} |
||||
|
@ -0,0 +1,2 @@ |
||||
<%namespace file="vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_csharp_ext', libs, targets)} |
@ -0,0 +1,2 @@ |
||||
<%namespace file="vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_csharp_ext', libs, targets, configuration_type = 'DynamicLibrary', project_guid = '{C26D04A8-37C6-44C7-B458-906C9FCE928C}', additional_props = ['winsock'])} |
@ -0,0 +1,2 @@ |
||||
<%namespace file="vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters('grpc', libs, targets)} |
@ -0,0 +1,2 @@ |
||||
<%namespace file="vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc', libs, targets, configuration_type = 'DynamicLibrary', project_guid = '{F2EE8FDB-F1E0-43A0-A297-6F255BB52AAA}', additional_props = ['ssl', 'winsock'], depends_on_zlib = True)} |
@ -1,2 +1,2 @@ |
||||
<%namespace file="vcxproj.filters_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_unsecure', libs, targets)} |
||||
<%namespace file="vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters('grpc_unsecure', libs, targets)} |
||||
|
@ -1,2 +1,2 @@ |
||||
<%namespace file="vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc', libs, targets)} |
||||
${gen_project('grpc_unsecure', libs, targets)} |
@ -1,5 +1,8 @@ |
||||
Debug |
||||
Release |
||||
*.suo |
||||
*.user |
||||
test_bin |
||||
grpc.opensdf |
||||
grpc.sdf |
||||
third_party/*.user |
||||
|
@ -0,0 +1,184 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<ItemGroup Label="ProjectConfigurations"> |
||||
<ProjectConfiguration Include="Debug|Win32"> |
||||
<Configuration>Debug</Configuration> |
||||
<Platform>Win32</Platform> |
||||
</ProjectConfiguration> |
||||
<ProjectConfiguration Include="Release|Win32"> |
||||
<Configuration>Release</Configuration> |
||||
<Platform>Win32</Platform> |
||||
</ProjectConfiguration> |
||||
</ItemGroup> |
||||
<PropertyGroup Label="Globals"> |
||||
<ProjectGuid>{3D304D6B-AAF8-428B-AC7D-A698DDDE93C0}</ProjectGuid> |
||||
</PropertyGroup> |
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
||||
<ConfigurationType>DynamicLibrary</ConfigurationType> |
||||
<UseDebugLibraries>true</UseDebugLibraries> |
||||
<PlatformToolset>v120</PlatformToolset> |
||||
<CharacterSet>Unicode</CharacterSet> |
||||
<IntDir>$(Configuration)\$(ProjectName)\</IntDir> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
||||
<ConfigurationType>DynamicLibrary</ConfigurationType> |
||||
<UseDebugLibraries>false</UseDebugLibraries> |
||||
<PlatformToolset>v120</PlatformToolset> |
||||
<WholeProgramOptimization>true</WholeProgramOptimization> |
||||
<CharacterSet>Unicode</CharacterSet> |
||||
<IntDir>$(Configuration)\$(ProjectName)\</IntDir> |
||||
</PropertyGroup> |
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
||||
<ImportGroup Label="ExtensionSettings"> |
||||
</ImportGroup> |
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
||||
<Import Project="global.props" /> |
||||
</ImportGroup> |
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
||||
<Import Project="global.props" /> |
||||
</ImportGroup> |
||||
<PropertyGroup Label="UserMacros" /> |
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
||||
<TargetName>gpr</TargetName> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
||||
<TargetName>gpr</TargetName> |
||||
</PropertyGroup> |
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
||||
<ClCompile> |
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader> |
||||
<WarningLevel>Level3</WarningLevel> |
||||
<Optimization>Disabled</Optimization> |
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_USE_32BIT_TIME_T;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
||||
<SDLCheck>true</SDLCheck> |
||||
</ClCompile> |
||||
<Link> |
||||
<SubSystem>Windows</SubSystem> |
||||
<GenerateDebugInformation>true</GenerateDebugInformation> |
||||
</Link> |
||||
</ItemDefinitionGroup> |
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
||||
<ClCompile> |
||||
<WarningLevel>Level3</WarningLevel> |
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader> |
||||
<Optimization>MaxSpeed</Optimization> |
||||
<FunctionLevelLinking>true</FunctionLevelLinking> |
||||
<IntrinsicFunctions>true</IntrinsicFunctions> |
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_USE_32BIT_TIME_T;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
||||
<SDLCheck>true</SDLCheck> |
||||
</ClCompile> |
||||
<Link> |
||||
<SubSystem>Windows</SubSystem> |
||||
<GenerateDebugInformation>true</GenerateDebugInformation> |
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding> |
||||
<OptimizeReferences>true</OptimizeReferences> |
||||
</Link> |
||||
</ItemDefinitionGroup> |
||||
<ItemGroup> |
||||
<ClInclude Include="..\..\include\grpc\support\alloc.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\atm.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\atm_gcc_atomic.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\atm_gcc_sync.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\atm_win32.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\cancellable_platform.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\cmdline.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\histogram.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\host_port.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\log.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\log_win32.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\port_platform.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\slice.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\slice_buffer.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\sync.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\sync_generic.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\sync_posix.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\sync_win32.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\thd.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\time.h" /> |
||||
<ClInclude Include="..\..\include\grpc\support\useful.h" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<ClInclude Include="..\..\src\core\support\cpu.h" /> |
||||
<ClInclude Include="..\..\src\core\support\env.h" /> |
||||
<ClInclude Include="..\..\src\core\support\file.h" /> |
||||
<ClInclude Include="..\..\src\core\support\murmur_hash.h" /> |
||||
<ClInclude Include="..\..\src\core\support\string.h" /> |
||||
<ClInclude Include="..\..\src\core\support\string_win32.h" /> |
||||
<ClInclude Include="..\..\src\core\support\thd_internal.h" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<ClCompile Include="..\..\src\core\support\alloc.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\cancellable.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\cmdline.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\cpu_linux.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\cpu_posix.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\cpu_windows.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\env_linux.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\env_posix.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\env_win32.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\file.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\file_posix.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\file_win32.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\histogram.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\host_port.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\log.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\log_android.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\log_linux.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\log_posix.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\log_win32.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\murmur_hash.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\slice.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\slice_buffer.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\string.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\string_posix.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\string_win32.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\sync.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\sync_posix.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\sync_win32.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\thd_posix.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\thd_win32.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\time.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\time_posix.c"> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\time_win32.c"> |
||||
</ClCompile> |
||||
</ItemGroup> |
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
||||
<ImportGroup Label="ExtensionTargets"> |
||||
</ImportGroup> |
||||
</Project> |
||||
|
@ -0,0 +1,214 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<ItemGroup> |
||||
<ClCompile Include="..\..\src\core\support\alloc.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\cancellable.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\cmdline.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\cpu_linux.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\cpu_posix.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\cpu_windows.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\env_linux.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\env_posix.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\env_win32.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\file.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\file_posix.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\file_win32.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\histogram.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\host_port.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\log.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\log_android.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\log_linux.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\log_posix.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\log_win32.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\murmur_hash.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\slice.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\slice_buffer.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\string.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\string_posix.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\string_win32.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\sync.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\sync_posix.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\sync_win32.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\thd_posix.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\thd_win32.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\time.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\time_posix.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="..\..\src\core\support\time_win32.c"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClCompile> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<ClInclude Include="..\..\include\grpc\support\alloc.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\atm.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\atm_gcc_atomic.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\atm_gcc_sync.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\atm_win32.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\cancellable_platform.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\cmdline.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\histogram.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\host_port.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\log.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\log_win32.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\port_platform.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\slice.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\slice_buffer.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\sync.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\sync_generic.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\sync_posix.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\sync_win32.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\thd.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\time.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\include\grpc\support\useful.h"> |
||||
<Filter>include\grpc\support</Filter> |
||||
</ClInclude> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<ClInclude Include="..\..\src\core\support\cpu.h"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\src\core\support\env.h"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\src\core\support\file.h"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\src\core\support\murmur_hash.h"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\src\core\support\string.h"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\src\core\support\string_win32.h"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="..\..\src\core\support\thd_internal.h"> |
||||
<Filter>src\core\support</Filter> |
||||
</ClInclude> |
||||
</ItemGroup> |
||||
|
||||
<ItemGroup> |
||||
<Filter Include="include"> |
||||
<UniqueIdentifier>{9ea89137-2bf7-b6d9-b7af-7cb4d1b74928}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="include\grpc"> |
||||
<UniqueIdentifier>{e6957ec1-85ba-6515-03c0-e12878045b1f}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="include\grpc\support"> |
||||
<UniqueIdentifier>{31c42000-3ed7-95e1-d076-df814b72cdee}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="src"> |
||||
<UniqueIdentifier>{60eb2826-e58b-cb10-a98d-fe04727398a2}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="src\core"> |
||||
<UniqueIdentifier>{c5e1baa7-de77-beb1-9675-942261648f79}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="src\core\support"> |
||||
<UniqueIdentifier>{bb116f2a-ea2a-c233-82da-0c54e3cbfec1}</UniqueIdentifier> |
||||
</Filter> |
||||
</ItemGroup> |
||||
</Project> |
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue