Commit Graph

29038 Commits

Author SHA1 Message Date
François Revol
dd2625bfb0 Some print-specific CSS rules, after those I did on my resume:
- inline acronym definitions and remove the dotted underline
- inline urls for a tags with printurl class (we don't want all of them printed)
- noprint class for things we might not want to print at all


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 15:38:16 +00:00
Ingo Weinhold
a7ccfc910c Added WaitObjectListener destructor. Hopefully fixes the gcc 2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 14:53:18 +00:00
Ingo Weinhold
227fe7d34a * Scheduler/wait object listener:
- Moved scheduler listening interface to <listeners.h> and added more
    convenient to use templatized notification functions.
  - Added a listener mechanism for the wait objects (semaphores, condition
    variables, mutex, rw_lock).
* system profiler:
  - Hopefully fixed locking issues related to notifying the profiler thread
    for good. We still had an inconsistent locking order, since the scheduler
    notification callbacks are invoked with the thread lock held and have to
    acquire the object lock then, while the other callbacks acquired the object
    lock first and as a side effect of ConditionVariable::NotifyOne() acquired
    the thread lock. Now we make sure the object lock is the innermost lock.
  - Track the number of dropped events due to a full buffer.
    _user_system_profiler_next_buffer() returns this count now.
  - When scheduling profiling events are requested also listen to wait objects
    and generate the respective profiling events. We send those events lazily
    and cache the infos to avoid resending an event for the same wait object.
  - When starting profiling we do now generate "thread scheduled" events for
    the already running threads.
  - _user_system_profiler_start(): Check whether the parameters pointer is a
    userland address at all.
  - The system_profiler_team_added event does now also contain the team's name.
* Added a sem_get_name_unsafe() returning a semaphore's name. It is "unsafe",
  since the caller has to ensure that the semaphore exists and continues to
  exist as long as the returned name is used.
* Adjusted the "profile" and "scheduling_recorder" according to the system
  profiling changes. The latter prints the number of dropped events, now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 13:47:52 +00:00
Ingo Weinhold
1c800aa1f9 Updated TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 12:19:36 +00:00
Ingo Weinhold
9d7f0c336a * Moved the TableColumn subclasses to TableColumns.{cpp,h}.
* Added Int32TableColumn and BigtimeTableColumn classes.
* Evaluate the timestamps of the events that have one and maintain the
  fLastEventTime field, so we get estimated team/thread creation/deletion
  times.
* Added some columns to the threads table (ID, creation and deletion time).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 23:32:33 +00:00
Ingo Weinhold
b623e81cf7 The string setter didn't reset the flags.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 23:22:16 +00:00
Ingo Weinhold
f57c87ac31 Added creation and deletion time getters to Team and Thread.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 23:21:39 +00:00
Ingo Weinhold
1ad26e2a7f Swapped k{Up,Down}SortArrow*. This not only makes the naming more intuitive
(the "down" arrow actually points down, now), it also uses the arrows
consistent with Tracker -- i.e. arrow pointing down means ascending order.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 22:55:15 +00:00
Ingo Weinhold
146f113fec Fixed issues with the scheduling events. In the listener callbacks we
potentially want to notify the profiler thread (i.e. wake it up), which can
cause another scheduling event notification. That is we have to make sure that
event buffer is in a consistent state at that point (i.e. wake up the thread
at the very end of the callbacks). Furthermore the ThreadEnqueuedInRunQueue()
callback can be called with spinlocks besides the thread spinlock being held. In
particular waking up threads also happens in the condition variable code with
a static spinlock being held. Trying to notify the condition variable the
profiler thread is waiting on in such a case would be a guaranteed deadlock.
Hence we avoid doing that, now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 22:15:27 +00:00
Ingo Weinhold
4a559f388b simple_enqueue_in_run_queue(): Between having found the insertion point and
manipulating the queue is a particularly unsuitable place for calling the
listeners, as they wouldn't be allowed to e.g. unblock threads, since that
would screw the run queue.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 22:03:56 +00:00
Oliver Ruiz Dorantes
9a597aaebd Fix JamFile / style
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 21:00:58 +00:00
Oliver Ruiz Dorantes
620b8b6e4c Class name starts with uppercase/ style
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 20:59:17 +00:00
Stephan Aßmus
3861c65e89 * Make the source selection not accidentally reject the boot partition because
it isn't BFS... (like perhaps ISO9660 with write-overlay ;-)
* Reject a lot more situations as valid targets. (No more devices when they
  already have child partitions, no more extended partitions themselves, also
  use a minimum size.)
* Remove the partition ID from the menu item name. I don't know why the user
  would be interested in this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 20:21:39 +00:00
Stephan Aßmus
bbab3b46ce Whoops, that was for debugging the fallback code path...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 19:57:08 +00:00
Stephan Aßmus
90562b72b7 Try really hard to launch DriveSetup. The registrar may have trouble to launch
an app by signature if the mime database is incomplete. Like on a boot CD.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 19:55:47 +00:00
Stephan Aßmus
31b2d189ab Change the Bootscript and Bootscript.cd to use the new isvolume -readonly-partition
feature and offer the user to boot into the Installer or into the Desktop (Live-CD
mode). Thanks to Vincent Duvert who offered a method that worked around some
interference from mysterious debug output...
The launching of the servers has been refactored, since that needs to be done anyways
before an alert can be shown.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 19:40:41 +00:00
François Revol
98d26da2c3 - move functions before html start to be able to use them when outputting something else,
- add support for generating a .vnc file and a .m3u for audio.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 16:56:17 +00:00
Axel Dörfler
636ccbf306 * Write the identifier as attribute to the file to make later checks possible.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 15:58:29 +00:00
Axel Dörfler
3b9dec1c07 * remove_dir() can no longer remove the base dir.
* Added a remove_dirs() that can reliably clean up the mess afterwards.
* Added option -b to set an alternative base dir.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 15:32:56 +00:00
Stephan Aßmus
5be48305c2 Small cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 14:56:10 +00:00
Stephan Aßmus
2d294045c7 Add an extra option to isvolume to check if the underlaying partition is
perhaps read-only, while the volume appears to be writable because of the
filesystem overlays.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 14:45:29 +00:00
Stephan Aßmus
acc632c7ec Make it clear from the API that the volume passed in is not touched by the
function.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 14:13:45 +00:00
Axel Dörfler
97f89e0360 * All files now get unique, and verifiable contents.
* Added argument -c|--check-interval to determine how often the file contents
  are checked.
* Added some statistics.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 13:01:54 +00:00
Ingo Weinhold
7615c5eee5 Removed superfluous TableModel::GetColumnName(). The TableColumns have a name,
anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 12:23:43 +00:00
Ingo Weinhold
3e9f9e8672 Factored subclass DelagateBasedTableColumn out of TableColumn. This allows to
implement the TableColumn interface without a column delegate.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 12:16:25 +00:00
Ingo Weinhold
fc0965bb05 Use Variant instead of void* for values in the table model.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 11:56:44 +00:00
Ingo Weinhold
4e632511e4 Added class Variant, a typed union-like wrapper for a single value.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 11:55:26 +00:00
François Revol
91054f1d38 Use the <label> tag instead of hand made stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 11:04:17 +00:00
Stephan Aßmus
4ab94faa39 The BMessage constructor of BScrollBar had a couple of rather important
omissions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 09:17:38 +00:00
Stephan Aßmus
872c998bee Don't break the BeOS build...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 08:18:39 +00:00
Stephan Aßmus
f4aaf23e06 Draw the playback mark a bit nicer in the playlist window.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 08:17:24 +00:00
Ingo Weinhold
486725aad1 * Use Table instead of BColumnListView.
* Partially implemented a respective table model. At least the thread names can
  be seen now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 00:28:42 +00:00
Ingo Weinhold
ffa1d866c6 fThreadsPage is already initialized to the object we want to use.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 00:26:22 +00:00
Ingo Weinhold
82d9e19758 Added Thread::Name() getter.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 00:23:29 +00:00
Ingo Weinhold
488f3fb86a First sketch of class Table which wraps BColumnListView to provide at least some
reasonable model/view separation. *sigh*


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 00:22:45 +00:00
Michael Lotz
4585fda629 The bootfloppy image has become so fat that it simply doesn't fit the 1.44 size
anymore. This was the case for GCC4 already but is now also true for GCC2. We
might want to look into that again, or we can just ignore it as noone is really
using floppies anymore and for eltorito boot we can live with the 2.88 floppy
emulation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 00:17:22 +00:00
Michael Lotz
22a6e4bb80 Only use 2 bytes of the signature instead of all four. Even though the specs
clearly state that the other two bytes need to be 0x01 (and they always did,
even back to the very first ATA/ATAPI specs), I have one device here that
doesn't set the sector count register to 1. Since those two bytes are the unique
ones of the signatures anyway, it shouldn't harm to just ignore the others.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 00:14:33 +00:00
Philippe Houdoin
0750bc97a5 There is no more "default" fortune file.
Instead, let's call /bin/fortune without specific file by default to use its random selection 
feature.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 23:58:32 +00:00
Stephan Aßmus
da34a08541 Do not scale the scroll bar thumb size between min size and max size, but
between 0 and max size and restrict to min size afterwards. This leads to more
consistent behavior and a more reasonable scroll bar size until the minimum
size is reached. And it also fixes #3801. Probably also fixes the bug where
some Pe windows could not be scrolled, or only scrolled very little. I assume
this because a special trick is used for proportional scroll bars in Pe. It
does not set the proportion, but only large steps and then the proportion is
calculated from that. But since the minimum size was not taken into account
before, it would have exactly this inconsistency. Since the size now ranges
from 0 to max, this should now be in sync. But I didn't have a Pe window handy
which exposed this bug to confirm my assumption...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 22:12:27 +00:00
Stephan Aßmus
a31d4f9d29 Init global fonts before BWidthBuffer. Probably cleaner, since it may use
some fonts already, but I have not looked...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 22:08:11 +00:00
Stephan Aßmus
8d18637080 * Added setting for "Ignore Double Click". I assumed it to be the desired
behavior to ignore double clicks in case someone did it out of habbit, but
  wouldn't expect an app to launch twice because of that. However, some people
  may want the plain/straight button behavior, as testified in #3800. :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 21:39:14 +00:00
Oliver Ruiz Dorantes
3a75fb9c85 style
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 21:36:37 +00:00
Stephan Aßmus
b518478165 More style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 21:06:10 +00:00
Axel Dörfler
59b3d28a25 * Wrote a test application trying to reproduce bug #2197, ie. modelled after
Mozilla's PR_NewTCPSocketPair() -- unfortunately, it doesn't seem to work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 21:01:25 +00:00
Oliver Ruiz Dorantes
b09fa0e435 - Fix Jamfile
- Avoid constructor in parent class



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 20:59:47 +00:00
Stephan Aßmus
c0d8a10f50 Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 20:49:32 +00:00
Ingo Weinhold
08e34e27d4 * Added team and thread management to Model.
* ModelLoader does now at least evaluation team and thread added/removed events.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 20:33:15 +00:00
Oliver Ruiz Dorantes
c3053cacff - Add candidate interface for addons with custom configuration for LocalDevices.
- Add example implementation for Devices which need issue a Reset Command



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 20:04:24 +00:00
Axel Dörfler
a87124634a * Our INADDR_* and IN_CLASS* macros were mostly wrong - they are supposed to
be in host endian order.
* Adapted ipv4 code that automatically finds a netmask to this change.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 19:21:52 +00:00
Oliver Ruiz Dorantes
1b80286772 Move GetID to public API
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 18:21:40 +00:00