Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_multi.cpp
| Context not available. | |||||
| device_ptr unique_ptr; | device_ptr unique_ptr; | ||||
| MultiDevice(DeviceInfo& info, Stats &stats, bool background_) | MultiDevice(DeviceInfo& info, Stats &stats, bool background_) | ||||
| : Device(stats), unique_ptr(1) | : Device(info, stats, background_) | ||||
| , unique_ptr(1) | |||||
| { | { | ||||
| Device *device; | Device *device; | ||||
| background = background_; | |||||
| foreach(DeviceInfo& subinfo, info.multi_devices) { | foreach(DeviceInfo& subinfo, info.multi_devices) { | ||||
| device = Device::create(subinfo, stats, background); | device = Device::create(subinfo, stats, background); | ||||
| devices.push_back(SubDevice(device)); | devices.push_back(SubDevice(device)); | ||||
| } | } | ||||
| #if 0 //def WITH_NETWORK | #ifdef WITH_NETWORK | ||||
| /* try to add network devices */ | /* try to add network devices */ | ||||
| ServerDiscovery discovery(true); | ServerDiscovery discovery(true); | ||||
| time_sleep(1.0); | time_sleep(1.0); | ||||
| list<string> servers = discovery.get_server_list(); | vector<string> servers = discovery.get_server_list(); | ||||
| foreach(string& server, servers) { | foreach(string& server, servers) { | ||||
| device = device_network_create(info, server.c_str()); | device = device_network_create(info, stats, server.c_str()); | ||||
| if(device) | if(device) | ||||
| devices.push_back(SubDevice(device)); | devices.push_back(SubDevice(device)); | ||||
| } | } | ||||
| Context not available. | |||||