Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

icetgeterror(3) [debian man page]

icetGetError(3) 						  IceT Reference						   icetGetError(3)

NAME
icetGetError -- return the last error condition. Synopsis #include <IceT.h> GLenum icetGetError( void ); Description Retrieves the first error or warning condition that occurred since the last call to icetGetError or since program startup, whichever hap- pened last. Once an error condition has been retrieved with icetGetError, the error condition is reset to no error and cannot be retrieved again. Return Value One of the following flags will be returned: ICET_INVALID_VALUE An inappropriate value has been passed to a function. ICET_INVALID_OPERATION An inappropriate function has been called. ICET_OUT_OF_MEMORY IceT has ran out of memory for buffer space. ICET_BAD_CAST A function has been passed a value of the wrong type. ICET_INVALID_ENUM A function has been passed an invalid constant. ICET_SANITY_CHECK_FAIL An internal error (or warning) has occurred. ICET_NO_ERROR No error has been raised since the last call to icetGetError. Bugs It is not possible to tell if the returned value was caused by an error or a warning. Notes The error value is not context dependent. Copyright Copyright (C)2003 Sandia Corporation Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. This source code is released under the New BSD License. See Also icetDiagnostics(3) IceT Reference August 9, 2010 icetGetError(3)

Check Out this Related Man Page

icetCreateContext(3)						  IceT Reference					      icetCreateContext(3)

NAME
icetCreateContext -- creates a new context. Synopsis #include <IceT.h> IceTContext icetCreateContext( IceTCommunicator comm ); Description The icetCreateContext function creates a new .igcontext!IceT IceT context, makes it current, and returns a handle to the new context. The handle returned is of type IceTContext. This is an opaque type that should not be handled directly, but rather simply passed to other IceT functions. Like OpenGL ,the IceT engine behaves like a large state machine. The parameters for engine operation is held in the current state. The entire state is encapsulated in a context. Each new context contains its own state. It is therefore possible to change the entire current state of IceT by simply switching contexts. Switching contexts is much faster, and often more convenient, than trying to change many state parameters. Errors None. Warnings None. Bugs It may be tempting to use contexts to run different IceT operations on separate program threads. Although certainly possible, great care must be taken. First of all, all threads will share the same context. Second of all, IceT is not thread safe. Therefore, a multi-threaded program would have to run all IceT commands in `critical sections' to ensure that the correct context is being used, and the methods exe- cute safely in general. Notes icetCreateContext duplicates the communicator comm. Thus, to avoid deadlocks on certain implementations (such as MPI), the user level pro- gram should call icetCreateContext on all processes with the same comm object at about the same time. Copyright Copyright (C)2003 Sandia Corporation Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. This source code is released under the New BSD License. See Also icetDestroyContext(3), icetGetContext(3), icetSetContext(3), icetCopyState(3), icetGet(3) IceT Reference August 9, 2010 icetCreateContext(3)
Man Page