That is, if the sequence
r = pth_uctx_create (*ctx) r = pth_uctx_switch (ctx, ctx)
could/should be possible? Doesn't the "to"-context get configured through the switch quasi "atomically" so it _is_ actually configured at the time of the "switch-to" operation within pth_uctx_switch?
Background: this would ease the creation of the "main thread" in certain cases where the first context switch away from the main thread is hidden inside a scheduler. Now I solve it with a quick switch to and back from a dummy thread.
Thanks - Stefan
-- Stefan Brantschen [EMAIL PROTECTED]
______________________________________________________________________ GNU Portable Threads (Pth) http://www.gnu.org/software/pth/ Development Site http://www.ossp.org/pkg/lib/pth/ Distribution Files ftp://ftp.gnu.org/gnu/pth/ Distribution Snapshots ftp://ftp.ossp.org/pkg/lib/pth/ User Support Mailing List [EMAIL PROTECTED] Automated List Manager (Majordomo) [EMAIL PROTECTED]