Code Monkey home page Code Monkey logo

coasync4cpp's People

Contributors

helgebetzinger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coasync4cpp's Issues

add support for sleep within a coroutine

Need something like co::sleep( milliseconds ) to pause current coroutine.
Becaus of much possibiities to wait for a while, we ned a wrapper for this.
Maybe TaskScheduler is the right place for implementtation.

post2thread should consume also methods with an return value

actually post2thread allows only <void(void) >. Nevertheless, would be more flexible, if it allows for
an return value and simply ignores it.
see the TEST_F(test_QtAwaitables, QFutureWithQtConcurrent ) { test, where the line
mainThread->postex( bindAsTask( [=] {
could be rewritten as
post2current( bindAsTask( [=] {

add cmake support

and automate creation of libaries, test and execution of the tests.

Build errors on OSX

Hi,

I have some build errors on OSX (Clang Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)

-- Build files have been written to: /Users/nos/coding/coasync4cpp/build
[ 20%] Building CXX object coasync4cpp/CMakeFiles/coasync4cpp.dir/src/bind2thread.cpp.o
In file included from /Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.cpp:3:
In file included from /Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.h:9:
/Users/nos/coding/coasync4cpp/coasync4cpp/src/task.h:108:9: error: use of undeclared identifier 'is_ready'
                        if ( is_ready()) {
                             ^
In file included from /Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.cpp:3:
/Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.h:96:3: error: static_assert failed "we should never go here!"
                static_assert(false, "we should never go here!");
                ^             ~~~~~
/Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.h:132:105: error: expected expression
-> decltype(std::bind(&Bind2Proxy<Signature>::post2thread_w_args< remove_const_reference<FirstT>::type >, thread, foo, std::forward<FirstT>(arg0), std::forward<Ts>(args)...))
                                                                                                        ^
/Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.h:140:102: error: expected expression
        return std::bind( &Bind2Proxy<Signature>::post2thread_w_args< remove_const_reference<FirstT>::type >, thread, foo, std::forward<FirstT>(arg0), std::forward<Ts>(args)...);
                                                                                                            ^

I just tried coasync4cpp, not the others.

Note: I already fixed some minor build problems.

The (pre-alpha) Buildscript is to be found on my Github fork: https://github.com/nob13/coasync4cpp/tree/cmake

restruture headers for easier usage of library

  • Eventuell ist es sinnvoll die Header und die Implementation zu trennen, dann weiß man sofort welchen Header man includieren muss..
    • Dabei wollen viele immer einen Include v.d.F. #include <coasync4cpp/coasync4cpp.h> haben (also mit Unterverzeichnis). Das heißt aber auch das die Header in ein eigenes Verzeichnis müssen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.