fd_entry.hh (13030:c08481a521c4) | fd_entry.hh (13568:9c11b79e3223) |
---|---|
1/* 2 * Copyright (c) 2016 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 197 unchanged lines hidden (view full) --- 206 void serialize(CheckpointOut &cp) const override; 207 void unserialize(CheckpointIn &cp) override; 208 209 private: 210 EmulatedDriver *_driver; 211 std::string _fileName; 212}; 213 | 1/* 2 * Copyright (c) 2016 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 197 unchanged lines hidden (view full) --- 206 void serialize(CheckpointOut &cp) const override; 207 void unserialize(CheckpointIn &cp) override; 208 209 private: 210 EmulatedDriver *_driver; 211 std::string _fileName; 212}; 213 |
214class SocketFDEntry: public HBFDEntry 215{ 216 public: 217 SocketFDEntry(int sim_fd, int domain, int type, int protocol, 218 bool close_on_exec = false) 219 : HBFDEntry(0, sim_fd, close_on_exec), 220 _domain(domain), _type(type), _protocol(protocol) 221 { } 222 223 SocketFDEntry(SocketFDEntry const& reg, bool close_on_exec = false) 224 : HBFDEntry(reg._flags, reg._simFD, close_on_exec), 225 _domain(reg._domain), _type(reg._type), _protocol(reg._protocol) 226 { } 227 228 std::shared_ptr<FDEntry> 229 clone() const override 230 { 231 return std::make_shared<SocketFDEntry>(*this); 232 } 233 234 private: 235 int _domain; 236 int _type; 237 int _protocol; 238}; 239 |
|
214#endif // __FD_ENTRY_HH__ | 240#endif // __FD_ENTRY_HH__ |