-
Notifications
You must be signed in to change notification settings - Fork 92
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
Showing
986 changed files
with
11,274 additions
and
4,734 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CompileFlags: | ||
CompilationDatabase: build/ # Search build/ directory for compile_commands.json | ||
|
||
Diagnostics: | ||
Suppress: cppcoreguidelines-avoid-do-while | ||
|
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
|
||
.idea | ||
.vscode | ||
.cache | ||
build | ||
*.iml | ||
/cmake-build-* | ||
|
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,49 @@ | ||
<?php | ||
|
||
// === Job Worker ================================================================================= | ||
|
||
/** @kphp-immutable-class */ | ||
interface KphpJobWorkerSharedMemoryPiece {} | ||
|
||
interface KphpJobWorkerRequest {} | ||
interface KphpJobWorkerResponse {} | ||
|
||
class KphpJobWorkerResponseError implements KphpJobWorkerResponse { | ||
// Job script execution errors: | ||
const JOB_MEMORY_LIMIT_ERROR = -101; | ||
const JOB_TIMEOUT_ERROR = -102; | ||
const JOB_EXCEPTION_ERROR = -103; | ||
const JOB_STACK_OVERFLOW_ERROR = -104; | ||
const JOB_PHP_ASSERT_ERROR = -105; | ||
|
||
const JOB_CLIENT_MEMORY_LIMIT_ERROR = -1001; // client doesn't have enough memory to accept job response | ||
const JOB_NOTHING_REPLIED_ERROR = -2001; // kphp_job_worker_store_response() was not succeeded | ||
|
||
const JOB_STORE_RESPONSE_INCORRECT_CALL_ERROR = -3000; | ||
const JOB_STORE_RESPONSE_NOT_ENOUGH_SHARED_MESSAGES_ERROR = -3001; | ||
const JOB_STORE_RESPONSE_TOO_BIG_ERROR = -3002; | ||
const JOB_STORE_RESPONSE_CANT_SEND_ERROR = -3003; | ||
|
||
public function getError() ::: string; | ||
public function getErrorCode() ::: int; // returns one of listed above error codes | ||
} | ||
|
||
/** @kphp-extern-func-info interruptible */ | ||
function kphp_job_worker_start(string $request, float $timeout): future<string> | false; | ||
|
||
/** @kphp-extern-func-info interruptible */ | ||
function kphp_job_worker_start_no_reply(string $request, float $timeout): bool; | ||
|
||
/** @kphp-extern-func-info interruptible */ | ||
function kphp_job_worker_start_multi(string[] $request, float $timeout): (future<string> | false)[]; | ||
|
||
/** @kphp-extern-func-info interruptible */ | ||
function kphp_job_worker_fetch_request(): string; | ||
|
||
/** @kphp-extern-func-info interruptible */ | ||
function kphp_job_worker_store_response(string $response): int; | ||
|
||
function is_kphp_job_workers_enabled(): bool; | ||
|
||
function get_job_workers_number(): int; | ||
|
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,23 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/unsupported/arrays.txt'; | ||
require_once __DIR__ . '/unsupported/crypto.txt'; | ||
require_once __DIR__ . '/unsupported/curl.txt'; | ||
require_once __DIR__ . '/unsupported/error.txt'; | ||
require_once __DIR__ . '/unsupported/file.txt'; | ||
require_once __DIR__ . '/unsupported/fork.txt'; | ||
require_once __DIR__ . '/unsupported/hash.txt'; | ||
require_once __DIR__ . '/unsupported/kml.txt'; | ||
require_once __DIR__ . '/unsupported/kphp-toggles.txt'; | ||
require_once __DIR__ . '/unsupported/kphp-tracing.txt'; | ||
require_once __DIR__ . '/unsupported/kphp_internal.txt'; | ||
require_once __DIR__ . '/unsupported/math.txt'; | ||
require_once __DIR__ . '/unsupported/misc.txt'; | ||
require_once __DIR__ . '/unsupported/regex.txt'; | ||
require_once __DIR__ . '/unsupported/rpc.txt'; | ||
require_once __DIR__ . '/unsupported/serialize.txt'; | ||
require_once __DIR__ . '/unsupported/server.txt'; | ||
require_once __DIR__ . '/unsupported/string.txt'; | ||
require_once __DIR__ . '/unsupported/time.txt'; | ||
require_once __DIR__ . '/unsupported/uberh3.txt'; | ||
require_once __DIR__ . '/unsupported/vkext.txt'; |
Oops, something went wrong.