Skip to content

Commit

Permalink
make startup callable multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita committed Sep 29, 2023
1 parent 521e98a commit 179520b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Caprica/common/CapricaJobManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ bool CapricaJob::tryRun() {

void CapricaJobManager::startup(size_t initialWorkerCount) {
defaultJob.await();

for (size_t i = 0; i < initialWorkerCount; i++) {
for (size_t i = workerCount; i < initialWorkerCount; i++) {
std::thread thr { [this] {
this->workerMain();
} };
Expand Down
2 changes: 1 addition & 1 deletion Caprica/papyrus/PapyrusCompilationContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void PapyrusCompilationNode::FileReadJob::run() {
if (parent->type == NodeType::PapyrusCompile || parent->type == NodeType::PasCompile ||
parent->type == NodeType::PexDissassembly) {
if (!conf::General::quietCompile)
std::cout << "Compiling " << parent->reportedName << std::endl;
std::cout << "Compiling " + parent->reportedName + "\n";
}
// TODO: remove this hack when imports are working
if (parent->sourceFilePath.starts_with("fake://")) {
Expand Down

0 comments on commit 179520b

Please sign in to comment.