SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search


SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Thread Tools Search this Thread Display Modes
Old 12-16-2009, 06:38 PM
tmiranda's Avatar
tmiranda tmiranda is offline
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Fork(), Wait(10), Refresh()


In the default STV I see many times when the screen needs refreshing that instead of just calling Refresh(), the STV Forks a thread and then does the Refresh() in the forked thread. Why?



Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
Old 12-16-2009, 06:57 PM
Join Date: Dec 2007
Posts: 6,257
There is a sticky at the top of studio forum on this one. In version 6.0 there was a problem where you had to call fork() before a refresh in certain areas. It is fixed in later versions and I believe they are probably left over from that if I where guessing...
Reply With Quote
Old 12-16-2009, 10:54 PM
Opus4's Avatar
Opus4 Opus4 is offline
Join Date: Sep 2003
Location: NJ
Posts: 19,624
No, it has nothing to do with that sticky, which was only referring to certain Hooks.

A Fork() followed by a short Wait() is used to allow other code to continue before doing a refresh, closing a 2nd options menu, and so on. For example: it allows CloseOptionsMenu() to close the current dialog before closing the next one after the fork/wait so that they close in sequence instead of appearing to close at the same time.

I didn't do a search for all those fork/wait combos just now, but I didn't think there were many that did nothing but a refresh after the wait.

- Andy
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Killing Fork() toricred SageTV Studio 9 07-26-2009 07:50 PM
wait for no input? PLUCKYHD SageTV Studio 8 05-12-2009 05:40 AM
Loading Preview. Please wait, and wait and wait... dshields Hardware Support 7 05-10-2006 09:55 PM
30 Second wait between searches dbfresh23 General Discussion 8 04-18-2006 11:38 AM
Fork() Bohica SageTV Studio 3 03-25-2006 01:05 PM

All times are GMT -6. The time now is 06:04 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.