GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
pacify_target(3) Arcan Lua API pacify_target(3)

pacify_target - Sever frameserver connection from a video object

nil
pacify_target( vid:src )
pacify_target( vid:src, bool:mask )

By default, frameservers are freed when the associated video object is deleted. This behavior can be altered through the use of this function in two different ways. One of them is by converting the frameserver-tied object into a normal one. In that case the client side is terminated, the event loop handler is detached and nothing frameserver related functions will cease to work. The other way is by setting the mask argument to false (default is true). This will emulate a client initiated termination, triggering the 'terminated' event handler. This can be useful to trick the rest of your scripts that the client exited normally, even if it did not.

1
calling pacify_target on a vid that is not associated with an active frameserver is a terminal state transition.

function pacify_target0()
      a = launch_avfeed("", "avfeed", function(source, status)
            if (status.kind == "resized") then
                  show_image(source);
                  resize_image(source, status.width, status.height);
                  pacify_target(source);
            end
      end);
end

function pacify_target0()
      a = null_surface(64, 64);
      pacify_target(a);
end

June 2022 targetcontrol

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.