neuray API Programmer's Manual

imdl_loading_wait_handle.h File Reference

Description

Interface to handle waiting for threads and notifying waiting threads.

Code Example

imdl_loading_wait_handle.h

‎/***************************************************************************************************
 * Copyright 2023 NVIDIA Corporation. All rights reserved.
 **************************************************************************************************/

#ifndef MI_NEURAYLIB_IMDL_LOADING_WAIT_HANDLE_H
#define MI_NEURAYLIB_IMDL_LOADING_WAIT_HANDLE_H

#include <mi/base/interface_declare.h>

namespace mi {

namespace neuraylib {












class IMdl_loading_wait_handle : public
    base::Interface_declare<0xc942596c,0x80fd,0x46d1,0x9a,0x1d,0x57,0x4c,0x27,0xf9,0x20,0x24>
{
public:
    virtual void wait() = 0;

    virtual void notify(Sint32 result_code) = 0;

    virtual Sint32 
               get_result_code() const = 0;
};


class IMdl_loading_wait_handle_factory : public
    base::Interface_declare<0x32ee19,0x2020,0x4cca,0xa7,0xd7,0xde,0xa1,0x7a,0xc6,0x95,0x11>
{
public:
    virtual IMdl_loading_wait_handle* create_wait_handle() const = 0;
};
 // end group mi_neuray_mdl_misc

} // namespace neuraylib
} // namespace mi

#endif // MI_NEURAYLIB_IMDL_LOADING_WAIT_HANDLE_H

Namespaces

namespace 
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH. More...
namespace 
Namespace for the neuray API. More...

Classes

class 
Interface of a loading wait handle. More...
class 
Interface of a loading wait handle factory. More...