Commit Graph

99 Commits

Author SHA1 Message Date
Vijay Pai 18c0477528 Got rid of all compilation problems, now need to test 2016-01-04 09:52:10 -08:00
Craig Tiller 7536af02cf Eliminate gpr_ int types - and insist on C99 variants instead 2015-12-22 13:49:30 -08:00
vjpai be75ffd028 Merge branch 'master' into bbuf 2015-12-22 10:40:16 -08:00
Jan Tattermusch 88086373db make gpr_timespec platform agnostic 2015-12-10 15:04:59 -08:00
vjpai b6df94ad22 WIP 2015-11-30 15:52:50 -08:00
Craig Tiller 187c4b36d9 Merge pull request #3177 from podsvirov/topic-grpc-string-ref-npos-redifinition
Move static value grpc::string_ref::npos definition to cc file
2015-11-04 08:04:56 -08:00
Craig Tiller 71a0f9d3b0 Fix clang-format script 2015-09-28 17:22:01 -07:00
Craig Tiller 04456843cd Windows fixes 2015-09-23 10:07:16 -07:00
Craig Tiller d6599a39e4 Replicate C++ docs from master to beta branch
Original PR #3074 by @dgquintas
2015-09-03 09:37:02 -07:00
yang-g deb3d2255d Add missed header 2015-09-01 12:51:28 -07:00
Konstantin Podsvirov dc90c13bec Move static value grpc::string_ref::npos definition to cc file 2015-09-01 16:18:57 +03:00
yang-g 0d9f81f741 minor fixes 2015-08-26 22:04:30 -07:00
Craig Tiller 47ec9a40ad Add ostream support for string_ref 2015-08-26 09:47:51 -07:00
yang-g e21908fcee impl 2015-08-25 13:47:51 -07:00
yang-g d5539ec6e2 remove constexpr since gcc 4.4 or vs2010 does not support it 2015-08-25 11:05:29 -07:00
Julien Boeuf 0382bfae38 Merge branch 'master' of github.com:grpc/grpc into cpp_string_ref 2015-08-24 23:55:43 -07:00
Julien Boeuf 8fd915ab8d Adding grpc::string_ref class.
- Strict subset of
  http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3442.html
- Useful to avoid unnecessary string copies.
2015-08-24 23:41:54 -07:00
yang-g 9e2f90cd06 headers reorg 2015-08-21 15:35:03 -07:00
Craig Tiller 94329d0965 Make the server report monotonic times for deadlines
For very high performance systems, we're going to want to be able to
simply push the value reported from the server down onto clients.

If we report realtime now, then all wrapped languages are going to
assume it, meaning that such a change will be impossible later.
2015-07-23 09:52:11 -07:00
Craig Tiller 354398f9f5 Updating wrapped languages to new time functions 2015-07-13 09:16:03 -07:00
Craig Tiller 143e7bf0cf Introduce a clock type field onto gpr_timespec.
Use it to validate that arithmetic on time types makes even some vague
kind of sense.
2015-07-13 08:41:49 -07:00
Yang Gao 89c5a56233 Add const to ByteBuffer methods and add tests 2015-06-22 16:31:11 -07:00
Yang Gao c1a2c314fb Update the Status API 2015-06-16 10:59:46 -07:00
David Garcia Quintas ca281377c0 Added missing compression.h file. 2015-06-08 20:11:30 -07:00
David Garcia Quintas 59f905d79a Changes to byte_buffer based on comments. 2015-06-08 20:06:17 -07:00
Vijay Pai 372fd8791b Revert "Revert "Open loop sync/async multithreaded testing"" 2015-06-08 13:30:08 -07:00
Craig Tiller d55636d813 Revert "Open loop sync/async multithreaded testing" 2015-06-08 10:12:46 -07:00
Vijay Pai cf3fb092cc clang-format 2015-06-05 03:41:30 -07:00
Vijay Pai 9dc5c15b56 Account for time difference in mac and linux 2015-06-03 11:34:53 -07:00
vjpai afc3ee89ee Merge branch 'master' into poisson 2015-06-03 10:13:48 -07:00
vjpai 3beb20c3e2 Support use of high_res clock in timepoints 2015-06-02 13:58:44 -07:00
David Garcia Quintas 30bd4eb5cc Removed grpc_byte_buffer_reader_{create,destroy}.
Introduced grpc_byte_buffer_init instead. It's now the user's responsibility to
manage memory.
2015-06-01 21:20:47 -07:00
Nicolas "Pixel" Noble 23be280366 Merge branch 'master' of github.com:grpc/grpc into the-purge-2
Conflicts:
	src/cpp/client/channel.cc
	vsprojects/vs2010/grpc++.vcxproj
	vsprojects/vs2013/grpc++.vcxproj.filters
2015-04-24 00:38:19 +02:00
Yang Gao 3b3097fb7a Remove an extra unref 2015-04-21 11:47:45 -07:00
Nicolas Noble 89219162dd Refactoring std::chrono out. 2015-04-08 05:42:08 +02:00
Yang Gao cdb2a6e071 Protect on some overflow scenarios, add a test and build/run the test 2015-03-20 23:55:04 -07:00
Yang Gao 6baa9b67ad clang-format c++ code 2015-03-17 10:49:39 -07:00
Yang Gao 086cd1108c read and copy add two ref's, unref one 2015-03-10 12:51:05 -07:00
Yang Gao 61c413182d initial imple of byte buffer and slice 2015-03-10 12:42:18 -07:00
Yang Gao 1c40233814 first sets of changes, it builds 2015-03-05 16:39:25 -08:00
Nicolas "Pixel" Noble 1ff52d5278 Guard headers tool. 2015-03-01 06:18:14 +01:00
Craig Tiller 190d360def Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
Craig Tiller 0605995e55 Update copyright to 2015 2015-02-18 08:34:56 -08:00
Craig Tiller ecd49345b5 Use clang-format-3.5 2015-01-18 14:36:47 -08:00
Craig Tiller b5dcec5a2e clang-format codebase 2015-01-13 11:13:42 -08:00
yangg ed5e7e006b Add deadline API on server side.
Change on 2015/01/06 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83351442
2015-01-06 17:45:46 -08:00
rsilvera 081e3200c8 Add missing casts to enable compilation with gcc 4.7
Change on 2014/12/16 by rsilvera <rsilvera@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82275653
2014-12-16 17:25:22 -08:00
yangg 87da1b937d Make the default deadline gpr_inf_future to avoid mismatch between
gpr_inf_future and time_point::max(). The redundant AbsoluteDeadline prefix is removed from the utility function names.

Now the ClientContext holds a gpr_timespec instead of a time_point.

A test will be added in the server side deadline support cl.
	Change on 2014/12/11 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81920769
2014-12-12 16:08:10 -08:00
Nicolas Noble b7ebd3b8c6 Initial import. 2014-11-26 16:33:03 -08:00