git-svn-id: svn://db.shs.com.ru/pip@742 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -724,7 +724,7 @@ bool PIFile::applyFileInfo(const PIString & path, const PIFile::FileInfo & info)
|
|||||||
}
|
}
|
||||||
CloseHandle(hFile);
|
CloseHandle(hFile);
|
||||||
#else
|
#else
|
||||||
#ifndef ESP_PLATFORM
|
//#ifndef ESP_PLATFORM
|
||||||
int mode(0);
|
int mode(0);
|
||||||
if (info.perm_user.read) mode |= S_IRUSR;
|
if (info.perm_user.read) mode |= S_IRUSR;
|
||||||
if (info.perm_user.write) mode |= S_IWUSR;
|
if (info.perm_user.write) mode |= S_IWUSR;
|
||||||
@@ -754,7 +754,7 @@ bool PIFile::applyFileInfo(const PIString & path, const PIFile::FileInfo & info)
|
|||||||
piCout << "[PIFile] applyFileInfo: \"utimes\" error:" << errorString();
|
piCout << "[PIFile] applyFileInfo: \"utimes\" error:" << errorString();
|
||||||
//return false;
|
//return false;
|
||||||
}
|
}
|
||||||
#endif
|
//#endif
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ bool PIThread::start(int timer_delay) {
|
|||||||
# endif
|
# endif
|
||||||
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
||||||
int ret = pthread_create(&PRIVATE->thread, &attr, thread_function, this);
|
int ret = pthread_create(&PRIVATE->thread, &attr, thread_function, this);
|
||||||
//piCout << "pthread_create" << PRIVATE->thread;
|
piCout << "pthread_create" << PRIVATE->thread;
|
||||||
pthread_attr_destroy(&attr);
|
pthread_attr_destroy(&attr);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
# ifdef MAC_OS
|
# ifdef MAC_OS
|
||||||
@@ -268,7 +268,7 @@ bool PIThread::startOnce() {
|
|||||||
# endif
|
# endif
|
||||||
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
||||||
int ret = pthread_create(&(PRIVATE->thread), &attr, thread_function_once, this);
|
int ret = pthread_create(&(PRIVATE->thread), &attr, thread_function_once, this);
|
||||||
//piCout << "pthread_create" << PRIVATE->thread;
|
piCout << "pthread_create" << PRIVATE->thread;
|
||||||
pthread_attr_destroy(&attr);
|
pthread_attr_destroy(&attr);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
# ifdef MAC_OS
|
# ifdef MAC_OS
|
||||||
@@ -469,7 +469,7 @@ void PIThread::__thread_func__(void * t) {
|
|||||||
ct.terminating = ct.running_ = false;
|
ct.terminating = ct.running_ = false;
|
||||||
ct.tid_ = -1;
|
ct.tid_ = -1;
|
||||||
//cout << "thread " << t << " exiting ... " << endl;
|
//cout << "thread " << t << " exiting ... " << endl;
|
||||||
//piCout << "pthread_exit" << (ct.__privateinitializer__.p)->thread;
|
piCout << "pthread_exit" << (ct.__privateinitializer__.p)->thread;
|
||||||
UNREGISTER_THREAD(&ct);
|
UNREGISTER_THREAD(&ct);
|
||||||
PIINTROSPECTION_UNREGISTER_THREAD(ct.tid());
|
PIINTROSPECTION_UNREGISTER_THREAD(ct.tid());
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
@@ -518,7 +518,7 @@ void PIThread::__thread_func_once__(void * t) {
|
|||||||
ct.terminating = ct.running_ = false;
|
ct.terminating = ct.running_ = false;
|
||||||
ct.tid_ = -1;
|
ct.tid_ = -1;
|
||||||
//cout << "thread " << t << " exiting ... " << endl;
|
//cout << "thread " << t << " exiting ... " << endl;
|
||||||
//piCout << "pthread_exit" << (ct.__privateinitializer__.p)->thread;
|
piCout << "pthread_exit" << (ct.__privateinitializer__.p)->thread;
|
||||||
UNREGISTER_THREAD(&ct);
|
UNREGISTER_THREAD(&ct);
|
||||||
PIINTROSPECTION_UNREGISTER_THREAD(ct.tid());
|
PIINTROSPECTION_UNREGISTER_THREAD(ct.tid());
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
|
|||||||
Reference in New Issue
Block a user