- now the mess with threads has gone away
- we have a class BaseThread -- this is a base class -- we can inherit from it when creating a new thread - others treads are correctly stopped (when signal comes) -- pthread_join - we have a special thread only for signals git-svn-id: svn://ttmath.org/publicrep/winix/trunk@685 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -89,6 +89,29 @@ void Emacs::PostFunEmacsModifyMountPoint(bool adding)
|
||||
|
||||
|
||||
|
||||
|
||||
int Emacs::NotifyCodeEdit()
|
||||
{
|
||||
if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
|
||||
return WINIX_NOTIFY_CODE_THREAD_POST_CHANGED;
|
||||
|
||||
return WINIX_NOTIFY_CODE_FILE_EDIT;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
int Emacs::NotifyCodeAdd()
|
||||
{
|
||||
if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
|
||||
return WINIX_NOTIFY_CODE_THREAD_REPLAYED;
|
||||
|
||||
return WINIX_NOTIFY_CODE_FILE_ADD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void Emacs::MakePost()
|
||||
{
|
||||
bool adding = !request->is_item;
|
||||
@@ -110,11 +133,11 @@ void Emacs::MakePost()
|
||||
request->is_item = true; // !! moze lepiej nie ustawiac is_item? (bo jak wystapi blad np dodania do bazy danych
|
||||
// to formularz edycji zmieni sie z 'dodaj' na 'edytuj'
|
||||
request->item.privileges = 0644; // !! tymczasowo, bedzie uzyte umask
|
||||
request->status = system->AddFile(request->item);
|
||||
request->status = system->AddFile(request->item, NotifyCodeAdd());
|
||||
}
|
||||
else
|
||||
{
|
||||
request->status = system->EditFile(request->item, request->item.url != old_url);
|
||||
request->status = system->EditFile(request->item, request->item.url != old_url, NotifyCodeEdit());
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user