Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef StudentFile_H
- #define StudentFile_H
- #include <iostream>
- #include <thread>
- #include <fstream>
- #include <sstream>
- #include <mutex>
- #include "StudentList.h"
- using namespace std;
- class StudentFile
- {
- private:
- ifstream student_file;
- StudentList * studentList;
- std::mutex* mtx;
- public:
- void set_mutex(std::mutex* my);
- StudentFile();
- StudentFile(StudentList * p_studentList,const char * filename);
- int processFile(StudentFile* name);
- static int startThread(StudentFile* me);
- ~StudentFile();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement