Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name remux threads #221

Merged
merged 6 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ jobs:

steps:
- name: "Checkout source"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: "Build artifacts"
run: |
ARCH=rm make docker
ARCH=kobo make docker
CROSS_TC=arm-kobo-linux-gnueabihf DOCKERFILE=Dockerfile.kobo FBINK=1 TARGET=kobo make docker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure we need this change or if using target=kobo is enough

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was copying what was in the stable-release action. Should they both be changed to just TARGET=kobo?

CROSS_TC=arm-kobo-linux-gnueabihf DOCKERFILE=Dockerfile.kobo FBINK=1 TARGET=kobo make docker
TARGET=rm make docker

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, thanks for fixing it here, then. I think i trust stable release, since that's been running and uploading artifacts

TARGET=rm make docker

- uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:

steps:
- name: "Checkout source"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true


- name: "Build artifacts"
Expand Down
3 changes: 3 additions & 0 deletions src/remux/launcher.cpy
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <chrono>

#include <time.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
Expand Down Expand Up @@ -466,6 +467,7 @@ class App: public IApp:
_ := system("mkdir /run/ 2> /dev/null")
_ = system("/usr/bin/mkfifo /run/remux.api 2>/dev/null")
self.ipc_thread = new thread([=]() {
prctl(PR_SET_NAME, "fifo\0", 0, 0, 0)
fd := open("/run/remux.api", O_RDONLY)

string remainder = ""
Expand Down Expand Up @@ -495,6 +497,7 @@ class App: public IApp:
debug "STARTING SUSPEND THREAD"
version := util::get_remarkable_version()
self.idle_thread = new thread([=]() {
prctl(PR_SET_NAME, "suspend\0", 0, 0, 0)
last_wake := 0
while true:
now := time(NULL)
Expand Down
Loading