-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ce5f7e
commit eea2224
Showing
58 changed files
with
2,221 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// There unhandled macro uses found in the body: | ||
// 'CPU_SETSIZE' defined in /usr/include/sched.h:82:10 | ||
// 'CPU_ISSET' defined in /usr/include/sched.h:85:10 | ||
// 'CPU_ZERO' defined in /usr/include/sched.h:87:10 | ||
// 'CPU_SET' defined in /usr/include/sched.h:83:10 | ||
module; | ||
// WARNING: Detected unhandled non interesting includes. | ||
// It is not suggested mix includes and imports from the compiler's | ||
// perspective. Since it may introduce redeclarations within different | ||
// translation units and the compiler is not able to handle such patterns | ||
// efficiently. | ||
// | ||
// See https://clang.llvm.org/docs/StandardCPlusPlusModules.html#performance-tips | ||
#include <version> | ||
#include <cassert> | ||
#include <stdio.h> | ||
#include <climits> | ||
|
||
#ifdef __linux__ | ||
#include <sched.h> | ||
#endif | ||
|
||
export module async_simple; | ||
import std; | ||
#define ASYNC_SIMPLE_USE_MODULES | ||
extern "C++" { | ||
#include "util/move_only_function.h" | ||
#include "coro/Traits.h" | ||
#include "experimental/coroutine.h" | ||
} | ||
export extern "C++" { | ||
#include "MoveWrapper.h" | ||
#include "Executor.h" | ||
} | ||
extern "C++" { | ||
#include "CommonMacros.h" | ||
#include "Common.h" | ||
#include "Unit.h" | ||
} | ||
export extern "C++" { | ||
#include "Try.h" | ||
} | ||
extern "C++" { | ||
#include "FutureState.h" | ||
#include "LocalState.h" | ||
#include "Traits.h" | ||
} | ||
export extern "C++" { | ||
#include "Future.h" | ||
#include "Promise.h" | ||
#include "coro/DetachedCoroutine.h" | ||
#include "coro/ViaCoroutine.h" | ||
#include "coro/Lazy.h" | ||
} | ||
extern "C++" { | ||
#include "uthread/internal/thread_impl.h" | ||
#include "uthread/internal/thread.h" | ||
} | ||
export extern "C++" { | ||
#include "uthread/Await.h" | ||
#include "uthread/Latch.h" | ||
#include "uthread/Uthread.h" | ||
#include "uthread/Async.h" | ||
#include "coro/ConditionVariable.h" | ||
#include "coro/SpinLock.h" | ||
#include "coro/Latch.h" | ||
#include "coro/CountEvent.h" | ||
#include "coro/Collect.h" | ||
#include "IOExecutor.h" | ||
#include "coro/SharedMutex.h" | ||
#include "uthread/Collect.h" | ||
#include "coro/PromiseAllocator.h" | ||
#include "executors/SimpleIOExecutor.h" | ||
#include "coro/Mutex.h" | ||
#include "Collect.h" | ||
#include "util/Condition.h" | ||
#include "coro/Dispatch.h" | ||
#include "coro/Sleep.h" | ||
#include "util/Queue.h" | ||
#include "util/ThreadPool.h" | ||
#include "coro/ResumeBySchedule.h" | ||
#include "coro/FutureAwaiter.h" | ||
#include "coro/SyncAwait.h" | ||
#include "executors/SimpleExecutor.h" | ||
#include "coro/Semaphore.h" | ||
#include "coro/Generator.h" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.