Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gCancellableGetFd

gCancellableGetFd


Description

Gets the file descriptor for a cancellable job. This can be used to implement cancellable operations on Unix systems. The returned fd will turn readable when cancellable is cancelled.

Usage

gCancellableGetFd(object)

Arguments

object

a GCancellable.

Details

You are not supposed to read from the fd yourself, just check for readable status. Reading to unset the readable status is done with gCancellableReset.

After a successful return from this function, you should use gCancellableReleaseFd to free up resources allocated for the returned file descriptor.

See also gCancellableMakePollfd().

Value

[integer] A valid file descriptor. -1 if the file descriptor is not supported, or on errors.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.