pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

PebbleOS

  • Overview
  • Contributing
  • Start here
  • Development
  • System
    • Architecture overview
    • Kernel
    • Subsystems
    • Drivers
    • Services
    • Libraries
    • Third-party
    • Application SDK
  • Hardware
  • Community
  • Reference
  • Firmware API Reference

Threads

pbl_thread_create() takes a struct pbl_thread_attr: entry, priority, privileged flag, a caller-owned stack and up to four MpuRegions that are switched in with the thread. With CONFIG_USERSPACE it also takes the memory the thread’s syscalls may use and the stack they run on (Syscalls).

Introspection

debug.h covers what core dumps, fault handling, stack checks and telemetry need: a thread walk with saved registers in the canonical order the core dump format expects, saved PC/LR/CONTROL of a blocked thread, stack bounds and high-water marks, and a run-time stats snapshot.

Generated from PebbleOS 3a7b71785. This page is maintained in the pebbleos repository: docs/kernel/threads.md.