Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - How to synchronize an operation among instances of same app?

How to synchronize an operation among instances of same app?

Put your problem here if it does not fit any of the other categories.

How to synchronize an operation among instances of same app?

Postby henryci » Mon Apr 27, 2009 6:32 am

I'm creating a library which could be used in apps with any sort of LaunchMode. At one point I do some file I/O and I'd like to synchronize this. Is there any object I can access to synchronize() on, or is it faster to use FileLocks?

Thanks,

-- Henry
henryci
Freshman
Freshman
 
Posts: 4
Joined: Sat Mar 14, 2009 8:01 pm

Top

Postby henryci » Mon Apr 27, 2009 6:38 am

Or is it the case that on Android two instances of the same app occur within the same process and doing
synchronized(LibraryClass.class)

is sufficient?

-- Henry
henryci
Freshman
Freshman
 
Posts: 4
Joined: Sat Mar 14, 2009 8:01 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 12 guests